Abstract
Abstract
asConverts the color to an array of numbers.
An array representing the color.
Converts the color to a hexadecimal string.
The hexadecimal representation of the color.
Abstract
asHSLAbstract
asHSVAbstract
asRGBAbstract
asConverts the color to a string representation.
The string representation of the color.
Adjusts the brightness of the color.
The brightness adjustment value.
A new RGB color with adjusted brightness.
Abstract
cloneCreates a clone of the current color instance.
A new Color instance that is a clone of the current instance.
Adjusts the contrast of the color.
The contrast adjustment value.
A new RGB color with adjusted contrast.
Darkens the color by a given value.
The amount to darken the color.
A new RGB color that is darkened.
Abstract
fadeFades the color by a given value.
The fade value.
A new Color instance that is faded.
Applies gamma correction to the color.
The gamma correction value.
A new RGB color with gamma correction applied.
Lightens the color by a given value.
The amount to lighten the color.
A new RGB color that is lightened.
Rotates the hue of the color by a given offset.
The amount to rotate the hue.
A new HSL color with the hue rotated.
Abstract
roundSaturates the color by a given ratio.
The ratio to saturate the color.
A new HSL color with increased saturation.
Sets the hue of the color.
The new hue value.
A new HSV color with the hue set.
Abstract class representing a color.