chameleon v2.1.0 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 an input color struct, and an output color model. Example: Chameleon.convert(Chameleon.Hex.new("FFFFFF"), Chameleon.RGB) -> %Chameleon.RGB{r: 255, g: 255, b: 255}

Performs the conversions from one color model to another

HSV (hue, saturation, value) represents colors using a cylinder where colors are sorted by angles and then adjusted via the saturation and value parameters