[−][src]Function conrod_core::color::rgb_to_hsl
pub fn rgb_to_hsl(r: f32, g: f32, b: f32) -> (f32, f32, f32)
Pure function for converting rgb to hsl.
- Inputs expected to be between
0.0
and1.0
. - Outputs
[0.0, 2*PI)
forh
,[0.0, 1.0]
for boths
andl