hct_cam16/
lib.rs

1//! `hct-cam16` — CAM16 + HCT perceptual color math.
2//!
3//! This crate provides a small, dependency-free implementation of:
4//! - CAM16 hue/chroma extraction
5//! - HCT (Hue–Chroma–Tone) color space
6//! - sRGB/Linear RGB/XYZ/L* conversions
7//! - An iterative gamut-mapping solver (Material Design 3 style)
8//!
9//! The public API is designed for deterministic `u32` ARGB input/output.
10
11mod hct;
12mod math;
13mod palette;
14mod scheme;
15
16pub use hct::{Hct, ViewingConditions};
17pub use palette::{CorePalette, TonalPalette, STANDARD_TONES};
18pub use scheme::MaterialColorScheme;