grimoire_css_color_toolkit 1.0.0

CSS Color Module Level 4 compliant color manipulation toolkit
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
//! # Grimoire CSS Color Toolkit
//!
//! CSS Color Module Level 4 compliant color manipulation library.
//! Strictly follows CSS specifications without SASS extensions.
//!
//! ## Usage
//!
//! ```rust
//! 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());
//! ```

pub mod color;
pub use color::Color;