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