chameleon v1.0.3 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 to_cmyk(hsl)
to_cmyk([integer()]) :: [integer()]

Converts an hsl color to its cmyk value.

Examples

iex> Chameleon.Hsl.to_cmyk([0, 100, 50])
%{c: 0, m: 100, y: 100, k: 0}
Link to this function to_hex(hsl)
to_hex([integer()]) :: charlist()

Converts an hsl color to its hex value.

Examples

iex> Chameleon.Hsl.to_hex([0, 100, 50])
"FF0000"
Link to this function to_keyword(hsl)
to_keyword([integer()]) :: charlist()

Converts an hsl color to its rgb value.

Examples

iex> Chameleon.Hsl.to_keyword([0, 0, 0])
"black"
Link to this function to_pantone(hsl)
to_pantone([integer()]) :: charlist()

Converts an hsl color to its rgb value.

Examples

iex> Chameleon.Hsl.to_pantone([0, 0, 0])
"30"
Link to this function to_rgb(hsl)
to_rgb([integer()]) :: [integer()]

Converts an hsl color to its rgb value.

Examples

iex> Chameleon.Hsl.to_rgb([0, 100, 50])
%{r: 255, g: 0, b: 0}