@tempots/color

xyz2hsl() function

Converts XYZ color space to HSL color space.

Signature:

xyz2hsl: (xyz: XYZ) => HSL

Parameters

Parameter

Type

Description

xyz

XYZ

The XYZ color to convert.

Returns: HSL

The corresponding HSL color.