Convert color between HSLuv and RGB spaces
This package uses an internal color representation to limit the number of conversion to the minimum.
If you create a color with the hsluv constructor and then manipulate it with
the HSLuv.Manipulate module, there will be no new conversion.
hsluv create a Color with normalized HSLuv
components (0->1) and an alpha channel
hsluv360 creates an HSLuv with
components and an alpha channel
- hue range is 0->360
- saturation range is 0->100
- lightness range is 0->100
- alpha range is 0->1rgba creates an HSLuv with normalized RGB components (0->1)
and an alpha channel
color creates an HSLuv with a Color
toHsluv extract the normalized components of an HSLuv
toColor convert an HSLuv color to a Color
toRgb extract the normalized components of a color in the RGBA format
hsluvToRgb convert HSLuv components to RGB
hpluvToRgb convert HSLuv components to RGB
rgbToHsluv convert RGB components to HSLuv
rgbToHpluv convert RGB components to HSLuv
lchToLuv convert LCH components to LUV
luvToLch convert LUV components to LCH
xyzToRgb convert XYZ components to RGB
rgbToXyz convert RGB components to XYZ
xyzToLuv convert XYZ components to LUV
luvToXyz convert LUV components to XYZ
hsluvToLch convert HSLuv components to LCH
lchToHsluv convert LCH components to HSLuv
hpluvToLch convert HPLuv components to LCH
lchToHpluv convert LCH components to HPLuv
Opaque color type