Expand description
§Grimoire CSS Color Toolkit
CSS Color Module Level 4 compliant color manipulation library. Strictly follows CSS specifications without SASS extensions.
§Usage
use grimoire_css_color_toolkit_lib::Color;
let red = Color::try_from_str("red").unwrap();
let blue = Color::from_hsl(240.0, 100.0, 50.0, 1.0);
let mixed = Color::mix(red, blue, 50.0);
println!("{}", mixed.to_hex_string());Re-exports§
pub use color::Color;
Modules§
- color
- This module provides color parsing and manipulation strictly following the CSS Color Module Level 4 specification.