Color constructor for four components, the latter which is optional.
Parses a color from the input.
Whether the color is dark.
Whether the color is light.
Returns an array of components.
Converts the color to black and white.
Converts the color to black and white.
Converts the color to black and white.
Returns a alpha value in the form of a range from 0 to 1.
Alpha value in the form of a range from 0 to 1.
Green value in the form of a range from 0 to 1.
Invert alpha value
Will return the color opposite to itself.
Red value in the form of a range from 0 to 1.
Alpha component
Blue component
Green component
Red component