jmpavlick/elm-ui-hsl/1.0.2

Element.Hsl

HSL colors for elm-ui.

hsl : Int -> Float -> Float -> Color

Create a color from hue, saturation, and lightness.

hsla : Int -> Float -> Float -> Float -> Color

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

{ h : Int
, s : Float
, l : Float
}
-> Color

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

{ h : Int
, s : Float
, l : Float
, a : Float
}
-> Color

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

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

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