Function validateAllColorIds

  • Validate all of a pattern's color Id's to ensure they are all unique and non-negative integers.

    Returns

    True if all the color's Id's are valid, false otherwise.

    Parameters

    • colors: Color[]

      The pattern's colors to validate the Id's of.

    Returns boolean

Generated using TypeDoc