stack

Home > @infiniteobjects/data-types > Color > isValid

Color.isValid() method

Return a boolean indicating whether the color was successfully parsed.

Signature:

static isValid(color: ColorInput | Color): boolean;

Parameters

Parameter Type Description
color ColorInput | Color  

Returns:

boolean

Remarks

If the color is not valid then it will act like black when being used with other methods.