Skip to main content

neutral

Function neutral 

Source
pub fn neutral(lightness: f32) -> Hsla
Expand description

A neutral (chroma 0) oklch tone as Hsla. Chroma 0 means r == g == b exactly, so this goes straight to an achromatic Hsla (skipping the hue math avoids float-noise saturation).