Skip to main content

ItemColorSanitizeColor

Callable

  • ItemColorSanitizeColor(item: Item): string[]

  • Sanitize the color of the passed item, returning an array of valid color strings and of length Asset.ColorableLayerCount.


    Parameters

    • item: Item

      The item whose colors are to be validated

    Returns string[]

    • The validated colors returned as array