A CSS-compatible color string. 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].
Get a CSS-compatible RGBA color string.
The desired alpha in the range [0, 1]
A CSS-compatible RGBA string
Set an rgb array with the rgb values contained in this Color class.
Receive the result. Must be an array with at least a length of 3.
Iterating over a Color is equivalent to iterating over its [r,g,b] color channels.
Apply a linear interpolation between two colors, according to the weight.
The first color to mix.
The second color to mix.
Weight of the linear interpolation.
The resulting mixed color
Multiply two colors.
The first color to multiply.
The second color to multiply.
The result.
Multiply a color by a scalar
The color to multiply.
A static scalar to multiply with.
The resulting color as a number.
Maximize two colors.
The first color.
The second color.
The result.
Maximize a color by a static scalar.
The color to maximize.
Scalar to maximize with (normalized).
The resulting color as a number.
Add two colors.
The first color.
The second color.
The resulting color as a number.
Add a static scalar to a color.
The color.
Scalar to add with (normalized).
The resulting color as a number.
Subtract two colors.
The first color.
The second color.
Subtract a color by a static scalar.
The color.
Scalar to subtract with (normalized).
The resulting color as a number.
Minimize two colors.
The first color.
The second color.
Minimize a color by a static scalar.
The color.
Scalar to minimize with (normalized).
Convert a color to RGB and assign values to a passed array.
The color to convert to RGB values.
Receive the result. Must be an array with at least a length of 3.
Create 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
A representation of a color in hexadecimal format. This class provides methods for transformations and manipulations of colors.