Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  • By name - A list of 56 predefined colour names, such as BLUE, RED, RED_ORANGE.
  • By RGB (A) values - The user specifies the colours by their Red-Green-Blue (-Alpha) value. Examples: RGB(1.,0.,0.) for red, RGB(1.,0,1.) for purple.
  • By RGBA values - To specify transparency, the user can use a RGBA convention. The convetion is 0 for fully transparent to 1 for for opaque. Ex: RGBA(1.,0.,0., 0.5)
  • By RGB RGB(A) Hex values - Similar as above the RGB(A) components are expressed in HTML hex notation. Example: #FF0000 for red.
  • By HSL (A) values - These are three numbers: the first is an angle from 0 to 360 representing Hue, then two numbers from 0 to 1 representing Saturation and Lightness. To add transparency, the user can add an alpha factor:

The following diagram shows the HSL colour wheel:

 

However the colours are specified, when Magics generates a colour scale from one colour to another, it internally traverses the HSL wheel either in a clockwise or anti-clockwise direction (this is user-configurable). This is important in order to understand the series of colours produced.

...

The following is a chart showing all available named colours in Magics: