Function hslToRgb

  • Converts an HSL color value to RGB.

    Assumes: h is contained in [0, 1] or [0, 360] and s and l are contained [0, 1] or [0, 100] Returns: { r, g, b } in the set [0, 255]

    Parameters

    • h: string | number
    • s: string | number
    • l: string | number

    Returns Numberify<RGB>