Represents a color in the RGB color space.
Alpha channel 0-1
0-1
Blue channel 0-255
0-255
Green channel 0-255
An HSL representation of the current color.
Red channel 0-255
An RGB representation of the current color.
Blends two colors together using a linear interpolation between them in the RGB color space.
Gets the complementary color in the HSL color space.
Darkens the color, through the HSL color space, by a given amount.
Desaturates the color, through the HSL color space, by a given amount.
Converts the color to grayscale using the W3C formula for relative luminance through the RGB color space.
Rotates the hue in the HSL color space by a given number of degrees.
Inverts the color by subtracting each channel from 255 in the RGB color space.
Lightens the color, through the HSL color space, by a given amount.
Calculates the luminance of the color in the RGB color space.
Saturates the color, through the HSL color space, by a given amount.
Shades the color, using a linear interpolation between the original color and black in the RGB color space, by a given amount.
Tints the color, using a linear interpolation between the original color and white in the RGB color space, by a given amount.
Converts the color to a hex string.
Creates a new color with the given alpha value.
Utility function for switching the HSL color space and performing an operation on the channels.
Utility function for switching to the RGB color space and performing an operation on the channels.