chameleon v2.0.0 Chameleon.Hsl
Link to this section Summary
Functions
Converts an hsl color to its cmyk value
Converts an hsl color to its hex value
Converts an hsl color to its rgb value
Converts an hsl color to its rgb value
Converts an hsl color to its rgb value
Link to this section Functions
Link to this function
new(h, s, l)
Converts an hsl color to its cmyk value.
Examples
iex> Chameleon.Hsl.to_cmyk(%Chameleon.Hsl{h: 0, s: 100, l: 50})
%Chameleon.Cmyk{c: 0, m: 100, y: 100, k: 0}
Converts an hsl color to its hex value.
Examples
iex> Chameleon.Hsl.to_hex(%Chameleon.Hsl{h: 0, s: 100, l: 50})
%Chameleon.Hex{hex: "FF0000"}
Converts an hsl color to its rgb value.
Examples
iex> Chameleon.Hsl.to_keyword(%Chameleon.Hsl{h: 0, s: 0, l: 0})
%Chameleon.Keyword{keyword: "black"}
Converts an hsl color to its rgb value.
Examples
iex> Chameleon.Hsl.to_pantone(%Chameleon.Hsl{h: 0, s: 0, l: 0})
%Chameleon.Pantone{pantone: "30"}