The string to convert to a color.
the color object.
Create a color in the specified color space using a, b and c as values.
Optional
colorSpace: keyof ColorSpacesThe color space to use. Defaults to "rgb".
the color object.
Optional
colorSpace: keyof ColorSpacesCreate a color in the specified color space using values.
An array of values (e.g. [r, g, b, a?]).
Optional
colorSpace: keyof ColorSpacesThe color space to use. Defaults to "rgb".
the color object.
Generated using TypeDoc
Creates a color from a string representation (as supported in CSS). Creates a color from a number representation [0; 16777215]