Function: isColorValid()
ts
function isColorValid(color): boolean;Defined in: isColorValid.ts:11
Validates the color by checking that the internally computed hex value is a valid 6 digit hexadecimal number or a valid 8 digit hexadecimal number for colors with alpha channel
Parameters
| Parameter | Type |
|---|---|
color | Color |
Returns
boolean