Skip to main content

CommonColorIsValid

Callable

  • CommonColorIsValid(Color?: string | readonly string[]): boolean

  • Checks whether an item's color has a valid value that can be interpreted by the drawing functions. Valid values are null, undefined, strings, and an array containing any of the aforementioned types.


    Parameters

    • optionalColor: string | readonly string[]

      The Color value to check

    Returns boolean

    • Returns TRUE if the color is a valid item color