iro — Representing Colors in Rust
Goals
- Representation of colors in different color spaces
- Conversion of colors between color spaces
and nothing else.
Example
use ;
use ;
// Rgb { r: 85, g: 191, b: 100 }
// Cmyk { c: 0.5549738, m: 0.0, y: 0.47643983, k: 0.25098038 }
// (55, 0, 48, 25)
// CmykInt { c: 55, m: 0, y: 48, k: 25 }
// Hsl { h: 127.42857, s: 0.45064378, l: 0.54313725 }
// HslInt { h: 127, s: 45, l: 54 }
About the name
iro (色) is the Japanese word for "color".