rfw2d
    Preparing search index...

    Function parseHexColor

    • Parse a hex color in format #rgb, #rgba, #rrggbb, or #rrggbbaa into a tuple.

      Parameters

      • hex: string

        Hex color string

      • normalize: boolean

        If true, write values in range [0,1] otherwise [0,255]

      • Optionaltarget: number[]

        Optional, target tuple

      Returns RGBATuple

      RGBA tuple