chameleon v1.0.3 Chameleon.Pantone

Link to this section Summary

Functions

Converts a pantone color to its cmyk value

Converts a pantone color to its hex value

Converts a pantone color to its hsl value

Converts a pantone color to its keyword value

Converts a pantone color to its rgb value

Link to this section Functions

Link to this function to_cmyk(pantone)
to_cmyk(charlist()) :: [integer()]

Converts a pantone color to its cmyk value.

Examples

iex> Chameleon.Pantone.to_cmyk("30")
%{c: 0, m: 0, y: 0, k: 100}
Link to this function to_hex(pantone)
to_hex(charlist()) :: charlist()

Converts a pantone color to its hex value.

Examples

iex> Chameleon.Pantone.to_hex("30")
"000000"
Link to this function to_hsl(pantone)
to_hsl(charlist()) :: [integer()]

Converts a pantone color to its hsl value.

Examples

iex> Chameleon.Pantone.to_hsl("30")
%{h: 0, s: 0, l: 0}
Link to this function to_keyword(pantone)
to_keyword(charlist()) :: charlist()

Converts a pantone color to its keyword value.

Examples

iex> Chameleon.Pantone.to_keyword("30")
"black"
Link to this function to_rgb(pantone)
to_rgb(charlist()) :: [integer()]

Converts a pantone color to its rgb value.

Examples

iex> Chameleon.Pantone.to_rgb("30")
%{r: 0, g: 0, b: 0}