jmpavlick / elm-ui-hsl / Element.Hsl

HSL colors for elm-ui.

hsl : Basics.Int -> Basics.Float -> Basics.Float -> Element.Color

Create a color from hue, saturation, and lightness.

hsla : Basics.Int -> Basics.Float -> Basics.Float -> Basics.Float -> Element.Color

Create a color from hue, saturation, lightness, and alpha (opacity).

fromHsl : { h : Basics.Int, s : Basics.Float, l : Basics.Float } -> Element.Color

hsl, with named parameters. Nice for readability, if you're into that sort of thing.

fromHsla : { h : Basics.Int, s : Basics.Float, l : Basics.Float, a : Basics.Float } -> Element.Color

hsla, with named parameters. Nice for readability, if you're into that sort of thing.

toRgb255 : { h : Basics.Int, s : Basics.Float, l : Basics.Float } -> { r : Basics.Int, g : Basics.Int, b : Basics.Int }

Converts hue, saturation, and lightness to red, green, and blue, with each color represented by integers from 0 - 255.