Expand description
OKLab/OKLCH color system for data visualization.
Core type is Color — f32 linear RGBA, GPU-native. All color math
operates in OKLab perceptual space. Zero external dependencies.
Re-exports§
pub use oklab::OkLab;pub use oklab::OkLch;pub use palette::Palette;pub use scale::ColorScale;
Modules§
- contrast
- WCAG contrast ratio checking.
- cvd
- Color vision deficiency (CVD) simulation.
- gamut
- OKLCH → sRGB gamut clipping via chroma bisection.
- oklab
OKLabandOKLCHcolor spaces — perceptual color math.- palette
- Color palettes for data visualization.
- scale
- Continuous
[0,1]→ Color mapping for GPU 1D texture lookups. - srgb
- sRGB ↔ linear RGB gamma encode/decode.
Structs§
- Color
- An RGBA color with f32 channels in linear space.