Just a color.
Color values are constructed by the global function color():
The color function constructs color value from red, green, blue and opacity components. Or by parsing the string using CSS syntax rules.
Colors can be declared by using CSS alike color constants:
color #rgb;
color #rrggbb;
color #rrggbbaa;
where r, g, b and a are hex digits 0...f.
Or by their HTML color names:
color.violet;
color.red;
color.gold;
Static method (of the class), constructs color value from red, green, blue and opacity components.
Static method (of the class), В constructs the color from HSV values, see: http://en.wikipedia.org/wiki/HSL_color_space
Static method (of the class), В constructs the color from HSL values, see: http://en.wikipedia.org/wiki/HSL_color_space
Returns new color by setting hue component of the color in HSL color space, hue is either angle or float, degrees 0 .. 360.
Returns new color by incrementing/decrementing hue component of the color in HSL color space by the given angle
Returns new color by setting lightness component of the color in HSL color space.
Returns new color by incrementing lightness component of the color in HSL color space.
Returns new color by decrementing lightness component of the color in HSL color space.
Returns new color by setting saturation component of the color in HSL color space.
Returns new color by incrementing saturation component of the color in HSL color space.
Returns new color by decrementing saturation component of the color in HSL color space.
Returns new color by changing alpha component of the color in RGBA color space.
Returns new color by incrementing/decrementing alpha component of the color in RGBA color space.
Returns new color by mixing the color with its pure grayscale version.
Static method (of the class), В parses the string and constructs the color value. Supported formats:
( [#RGB | #rgb | #rgba] ) : string
Returns string representation of the color value according to the format provided by the symbol defining one of formats:
( ) : int
Converts the color to 32bit integer.
( ) : float,float,float
Returns three values - H,S, and V color components .
( ) : float,float,float
Returns three values - H,S, and L color components .
( from : color, to:color, ratio: float ) : color
Computes the average color using the formula: (to - from) * ratio + from
for each color component. Transformation is made in premultiplied color space.