These functions obtain the value of a colour property, or modify it. They will convert between colour spaces as required, but the RGB representation will be appropriately updated in the result.
1 2 3 4 5 6 7 8 9 10 11
One or more colours, in any suitable form (see
New values for the property in question. If
Brightness and lightness differ technically, in the sense that one is absolute and the other is relative. Intuitively, a grey square on white paper is brighter under bright sunlight than in a dark room, but its lightness (relative to the white around it) is constant between conditions. In these functions, brightness is “value” in HSV space and is between 0 and 1, while lightness is defined in Lab space and is between 0 and 100. Saturation and chroma are also related. Hue is defined in HSV space, with red at 0<c2><ba> (and 360<c2><ba>), which is generally the most familiar parameterisation.
Current colour property values, or new colours of class
Jon Clayden <[email protected]>
1 2 3
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.