color_conv is a simple and lightweight helper library for easily and programmatically converting between the RGB
, CMYK
, HSL
, and hex
color formats.
toml
[dependencies]
color_conv = "0.2.1"
```rust use colorconv::Color; use colorconv::Cmyk; use color_conv::Rgb;
let cyan = Cmyk::newunchecked(100, 0, 0, 0); let cyanrgb = cyan.to_rgb();
asserteq!(Rgb::new(0, 255, 255), cyanrgb); ```