• Converts an HSL color value to RGB. Conversion formula adapted from https://en.wikipedia.org/wiki/HSL_color_space. Assumes h, s, and l are contained in the set [0, 1] and returns r, g, and b in the set [0, 255].

    Parameters

    • h: number

      The hue

    • s: number

      The saturation

    • l: number

      The lightness

    Returns [r: number, g: number, b: number]

    The RGB representation