Skip to content

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

ParameterType
colorColor

Returns

boolean