y047aka / elm-hsl-color / HslaColor.Manipulate

A library for creating and manipulating colors.

Color adjustment

rotateHue : Basics.Float -> HslaColor -> HslaColor

Change the hue of a color. The angle value must be in degrees

saturate : Basics.Float -> HslaColor -> HslaColor

Increase the saturation of a color

desaturate : Basics.Float -> HslaColor -> HslaColor

Decrease the saturation of a color

lighten : Basics.Float -> HslaColor -> HslaColor

Increase the lightning of a color

darken : Basics.Float -> HslaColor -> HslaColor

Decrease the lightning of a color

fadeIn : Basics.Float -> HslaColor -> HslaColor

Increase the opacity of a color

fadeOut : Basics.Float -> HslaColor -> HslaColor

Decrease the opacity of a color