One of the many available factories for Color. This variant has a single parameter that follows the CSS suite of describing colors as hexadecimal strings.
Example usage:
const colorRed = ColorHEX('#ff0000') const colorTransparentGreen = ColorHEX('#00ff0010')
Supported formats:
Basically all commonly used hexadecimal color syntaxes are supported, but here is a full list:
For more convenience factories, see:
Color object. Please refer to Color API document, on extended information how to use LCJS Colors.
Hexadecimal value for constructing a Color. Eq. '#FF0000' = Red
One of the many available factories for Color. This variant has a single parameter that follows the CSS suite of describing colors as hexadecimal strings.
Example usage:
Supported formats:
Basically all commonly used hexadecimal color syntaxes are supported, but here is a full list:
For more convenience factories, see:
Returns
Color object. Please refer to Color API document, on extended information how to use LCJS Colors.