![]() |
![]() |
![]() |
![]() |
libnkutils Colour formatColour format — textual representation of NkColour |
The colour string format is borrowed from the CSS4 colour values.
Hexadecimal (#
-prefixed) and decimal (rgb()
format) RGB(A) notations are supported.
Here is a quick description:
|
Each value is an hexadecimal value in the The alpha value is an extension of the CSS3 notation and is optional. The single-letter version means duplicating the character (e.g. |
|
Each colour value can be an number in the The alpha value is a floating point or a percentage value. |
|
Hue is an angle either in degrees (unit The saturation and lightness values are percentage values. The alpha value is the same as the |
|
Hue is the same as the The whiteness and blackness values are percentage values. The alpha value is the same as the |