chameleon v2.0.1-pre1 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 Types

Link to this type t()
t() :: %Chameleon.Pantone{pantone: String.t()}

Link to this section Functions

Link to this function pantone_to_hex_map()

Converts a pantone color to its cmyk value.

Examples

iex> Chameleon.Pantone.to_cmyk(%Chameleon.Pantone{pantone: "30"})
%Chameleon.CMYK{c: 0, m: 0, y: 0, k: 100}

Converts a pantone color to its hex value.

Examples

iex> Chameleon.Pantone.to_hex(%Chameleon.Pantone{pantone: "30"})
%Chameleon.Hex{hex: "000000"}

Converts a pantone color to its hsl value.

Examples

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

Converts a pantone color to its keyword value.

Examples

iex> Chameleon.Pantone.to_keyword(%Chameleon.Pantone{pantone: "30"})
%Chameleon.Keyword{keyword: "black"}

Converts a pantone color to its rgb value.

Examples

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