chameleon v1.0.3 API Reference
Modules
Chameleon
Chameleon is a utility that converts colors from one model to another. It currently supports: Hex, RGB, CMYK, HSL, Pantone, and Keywords.
Use
Conversion requires a color value, an input color model, and an output
color model.
Example: Chameleon.convert("FFFFFF", :hex, :rgb) -> {:ok, %{r: 255, g: 255, b: 255}}