Retrieves the value of the hue channel for the current color space.
the hue channel value of this color space
Retrieves the value of the saturation channel for the current color space.
the saturation channel value of this color space
Retrieves the value of the lightness channel for the current color space.
the lightness channel value of this color space
Retrieves a color channel from the HSV color space via key.
the name of the channel from the current color space to retrieve
the value of the channel matching the provided key
Retrieves an array representing the HSV color space containing the primary colors.
the HSV color space values as an array
Returns a hex string representing the RGB color space. This ignores any
alpha values.
Example
color.toString() // hsl(25,40%,54%)
color.toHexString() // #b9825b
color.toHexString(true) // b9825b
will return the hex value without a hashtag if true, otherwise will return with hashtag
Retrieves an object representing the RGBA color space containing the primary colors and alpha values.
the HSV color space values
Prints valid CSS string value.
valid CSS color value.
Generated using TypeDoc