Manipulate colors
This module let you manipulate the HSLuv
type.
setRed : Basics.Float -> HSLuv.Color.HSLuv -> HSLuv.Color.HSLuv
Set the red channel of the color. Requires a value in the 0->1 range.
setGreen : Basics.Float -> HSLuv.Color.HSLuv -> HSLuv.Color.HSLuv
Set the green channel of the color. Requires a value in the 0->1 range.
setBlue : Basics.Float -> HSLuv.Color.HSLuv -> HSLuv.Color.HSLuv
Set the blue channel of the color. Requires a value in the 0->1 range.
setHue : Basics.Float -> HSLuv.Color.HSLuv -> HSLuv.Color.HSLuv
Set the hue of the color. Requires a value in the 0->1 range.
setLightness : Basics.Float -> HSLuv.Color.HSLuv -> HSLuv.Color.HSLuv
Set the lightness of the color. Requires a value in the 0->1 range.
setSaturation : Basics.Float -> HSLuv.Color.HSLuv -> HSLuv.Color.HSLuv
Set the saturation of the color. Requires a value in the 0->1 range.
setAlpha : Basics.Float -> HSLuv.Color.HSLuv -> HSLuv.Color.HSLuv
Set the alpha of the color. Requires a value in the 0->1 range.
multRed : Basics.Float -> HSLuv.Color.HSLuv -> HSLuv.Color.HSLuv
Multiply the red channel by the give factor. The result is clamped in the 0->1 range.
multGreen : Basics.Float -> HSLuv.Color.HSLuv -> HSLuv.Color.HSLuv
Multiply the green channel by the give factor. The result is clamped in the 0->1 range.
multBlue : Basics.Float -> HSLuv.Color.HSLuv -> HSLuv.Color.HSLuv
Multiply the blue channel by the give factor. The result is clamped in the 0->1 range.
multHue : Basics.Float -> HSLuv.Color.HSLuv -> HSLuv.Color.HSLuv
Multiply the hue by the give factor. The result is clamped in the 0->1 range.
multLightness : Basics.Float -> HSLuv.Color.HSLuv -> HSLuv.Color.HSLuv
Multiply the lightness by the give factor. The result is clamped in the 0->1 range.
multSaturation : Basics.Float -> HSLuv.Color.HSLuv -> HSLuv.Color.HSLuv
Multiply the saturation by the give factor. The result is clamped in the 0->1 range.
multAlpha : Basics.Float -> HSLuv.Color.HSLuv -> HSLuv.Color.HSLuv
Multiply the alpha by the give factor. The result is clamped in the 0->1 range.
mapRed : (Basics.Float -> Basics.Float) -> HSLuv.Color.HSLuv -> HSLuv.Color.HSLuv
Map the red channel with the given function. The result is clamped in the 0->1 range.
mapGreen : (Basics.Float -> Basics.Float) -> HSLuv.Color.HSLuv -> HSLuv.Color.HSLuv
Map the green channel with the given function. The result is clamped in the 0->1 range.
mapBlue : (Basics.Float -> Basics.Float) -> HSLuv.Color.HSLuv -> HSLuv.Color.HSLuv
Map the blue channel with the given function. The result is clamped in the 0->1 range.
mapHue : (Basics.Float -> Basics.Float) -> HSLuv.Color.HSLuv -> HSLuv.Color.HSLuv
Map the hue with the given function. The result is clamped in the 0->1 range.
mapLightness : (Basics.Float -> Basics.Float) -> HSLuv.Color.HSLuv -> HSLuv.Color.HSLuv
Map the lightness with the given function. The result is clamped in the 0->1 range.
mapSaturation : (Basics.Float -> Basics.Float) -> HSLuv.Color.HSLuv -> HSLuv.Color.HSLuv
Map the saturation with the given function. The result is clamped in the 0->1 range.
mapAlpha : (Basics.Float -> Basics.Float) -> HSLuv.Color.HSLuv -> HSLuv.Color.HSLuv
Map the alpha with the given function. The result is clamped in the 0->1 range.