• Converts an HSL[A] color to a HEXA color.

    Example

    hslToHex('227deg', 0.3333, 0.35) // return { r: 0.2333, g: 0.2839, b: 0.4667, a: 1 }
    

    Parameters

    • hsla: [string, number, number, number?]

      Color components as an angle followed by fractions.

    Returns RGBA

Generated using TypeDoc