Function validateColorExists

  • Validate that a colorId maps to a valid color defined in the properties.

    Returns

    True if the colorId maps to a color defined in the colors list.

    Parameters

    • colorId: number

      The colorId to validate.

    • colors: Color[]

      The list of colors in the pattern.

    Returns boolean

Generated using TypeDoc