Home > @infiniteobjects/data-types > Color > isValid
Return a boolean indicating whether the color was successfully parsed.
Signature:
static isValid(color: ColorInput | Color): boolean;
Parameter | Type | Description |
---|---|---|
color | ColorInput | Color |
Returns:
boolean
If the color is not valid then it will act like black when being used with other methods.