chameleon v1.0.3 Chameleon.Keyword
Link to this section Summary
Functions
Converts a keyword color to its cmyk value
Converts a keyword color to its hex value
Converts a keyword color to its hsl value
Converts a keyword color to its pantone value
Converts a keyword color to its rgb value
Link to this section Functions
Link to this function
keyword_to_hex_map()
Link to this function
keyword_to_rgb_map()
Link to this function
rgb_values(rgb_map)
Converts a keyword color to its cmyk value.
Examples
iex> Chameleon.Keyword.to_cmyk("Red")
%{c: 0, m: 100, y: 100, k: 0}
Converts a keyword color to its hsl value.
Examples
iex> Chameleon.Keyword.to_hsl("Red")
%{h: 0, s: 100, l: 50}
Converts a keyword color to its pantone value.
Examples
iex> Chameleon.Keyword.to_pantone("Black")
"30"