DDNet - v0.8.1
    Preparing search index...

    Function HSLAfromTWcode

    • Converts a TW color code into HSLA 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 HSLA_Color

      Ranges for each component are: Hue: 0-360 Sat: 0-100 Lht: 0-100 Alpha: 0-1