Function rgb_to_hsl

Source
fn rgb_to_hsl(r: f32, g: f32, b: f32) -> (f32, f32, f32)
Expand description

Rec.601-free HSL round trip (matches the GPU body): hue in turns, s/l in 0..1.