color-tools 0.1.0
Convert hex, RGB, HSL and HSV colors, blend them and compute contrast ratio
Install
cargo add color-tools --registry rupm
In Ruststudio: Packages, search for color-tools, Install.
Owner: Rust Studio. Licence: MIT OR Apache-2.0. Total downloads: 0. Published 2026-11-22.
Versions
- 0.1.0 2026-11-22
README
# color-tools
Convert hex, RGB, HSL and HSV colors, blend them and compute contrast ratio
Add it with `rupm add color-tools` (or `cargo add color-tools --registry rupm`).
```rust
let c = color_tools::Rgb::from_hex("#ff8800")?;
let ratio = color_tools::contrast_ratio(c, color_tools::Rgb::new(0, 0, 0));
let hsl = c.to_hsl();
```