• Converts an HSL[A] color to an HWB color.

    Example

    hslToHwb('227deg', 0.3333, 0.35, 0.75) // return { h: 227, w: 0.2334, b: 0.5333, a: 0.75 }
    

    Parameters

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

      Color components as an angle followed by fractions.

    Returns HWB

Generated using TypeDoc