eskimoblood/elm-color-extra/2.0.0

NOTE: this package is not compatible with Elm 0.19.1

Color.Manipulate

A library for creating and manipulating colors.

Color adjustment

darken : Float -> Color -> Color

Decrease the lightning of a color

lighten : Float -> Color -> Color

Increase the lightning of a color

saturate : Float -> Color -> Color

Increase the saturation of a color

desaturate : Float -> Color -> Color

Decrease the saturation of a color

rotateHue : Float -> Color -> Color

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

fadeIn : Float -> Color -> Color

Increase the opacity of a color

fadeOut : Float -> Color -> Color

Decrease the opacity of a color

grayscale : Color -> Color

Convert the color to a greyscale version, aka set saturation to 0