• Converts an HSL color to an HSB color.

    Example

    hslToHsb('0.85turn', 0.3333, 0.35) // return { h: 306, s: 0.5, b: 0.4667 }
    

    Parameters

    • hsl: [string, number, number]

      Color components as an angle followed by fractions.

    Returns HSB

Generated using TypeDoc