Returns the color's alpha value in the set [0, 1]
.
Sets the color's alpha value, which must be in the set [0, 1]
.
Returns the color's blue value in the set [0, 255]
.
Sets the color's blue value, which must be in the set [0, 255]
.
Returns the color's green value in the set [0, 255]
.
Sets the color's green value, which must be in the set [0, 255]
.
Returns the color's red value in the set [0, 255]
.
Sets the color's red value, which must be in the set [0, 255]
.
Brightens the color by a specified percentage.
Returns the brightness of the color.
Darkens the color by a specified percentage.
Returns whether the color is dark based on its luminance.
Returns whether the color is light based on its luminance.
Increases the lightness of the color by a specified percentage.
Returns the luminance of the color.
Returns the hex value for the color.
Returns the HSL (hue, saturation, lightness) for the color.
Returns the HSV (hue, saturation, value) for the color.
Returns a string representation of the color in the specified format.
Generated using TypeDoc
A convenience class for working with and manipulating colors.