Function HSLAfromTWcode

  • Internal

    Converts a TW color code into HSL values

    Parameters

    • twCode: number

      The TW custom color code.

    • OptionalhasAlpha: boolean

      Set to true if the TW has an encoded alpha value. (For example, 0.7 tees have an alpha value encoded for the marking color)

    Returns [number, number, number, number]