Is this a valid color?
A CSS-compatible color string. If this color is not valid, the empty string is returned. An alias for Color#toString.
The color represented as an RGB array.
The numeric value of the red channel between [0, 1].
The numeric value of the green channel between [0, 1].
The numeric value of the blue channel between [0, 1].
The maximum value of all channels.
The minimum value of all channels.
Get the value of this color in little endian format.
The color represented as an HSV array. Conversion formula adapted from http://en.wikipedia.org/wiki/HSV_color_space. Assumes r, g, and b are contained in the set [0, 1] and returns h, s, and v in the set [0, 1].
The color represented as an HSL array. Assumes r, g, and b are contained in the set [0, 1] and returns h, s, and l in the set [0, 1].
Test whether this color equals some other color
Some other color or hex number
Are the colors equal?
Static
mixStatic
multiplyStatic
multiplyStatic
maximizeStatic
maximizeStatic
addStatic
addStatic
subtractStatic
subtractStatic
minimizeStatic
minimizeStatic
applyRGBStatic
fromCreate a Color instance from an RGB array.
A color input
The hex color instance or NaN
Static
fromStatic
fromRGBStatic
fromRGBvaluesStatic
fromHSVCreate a Color instance from an HSV array. Conversion formula adapted from http://en.wikipedia.org/wiki/HSV_color_space. Assumes h, s, and v are contained in the set [0, 1].
An HSV tuple
The hex color instance
Static
fromHSLStatic
from
A representation of a color in hexadecimal format. This class provides methods for transformations and manipulations of colors.