...
- By name - A list of 56 predefined colour names, such as BLUE, RED, RED_ORANGE.
- By RGB values - The user specifies the colours by their Red-Green-Blue 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 Hex values - Similar as above the RGB(A) components are expressed in HTML hex notation. Example: #FF0000 for red.
- By HSL 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
- By HSLA values to add transparency, the user can add an alpha factor:, Ex HSLA(180, 0.8, 0.5. 0.8)
The following diagram shows the HSL colour wheel:
...