Packages
Chameleon is a utility for converting colors from one color model to another. Conversions can be made to/from RGB, CMYK, Hex, HSL, Pantone, and even Keywords. For example: "FFFFFF" -> %{c: 0, m: 0, y: 0, k: 0}
Retired package: Release invalid - This is a prerelease and should nto be considered as stable
Current section
Files
Jump to
Current section
Files
lib/chameleon/util.ex
defmodule Chameleon.Util do
def keyword_to_rgb_map do
Code.eval_file("lib/chameleon/keyword_to_rgb.exs")
|> Tuple.to_list()
|> Enum.at(0)
end
def keyword_to_hex_map do
Code.eval_file("lib/chameleon/keyword_to_hex.exs")
|> Tuple.to_list()
|> Enum.at(0)
end
def pantone_to_hex_map do
Code.eval_file("lib/chameleon/pantone_to_hex.exs")
|> Tuple.to_list()
|> Enum.at(0)
end
end