Function nannou::ui::color::rgb_to_hsl[][src]

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

Pure function for converting rgb to hsl.

  • Inputs expected to be between 0.0 and 1.0.
  • Outputs [0.0, 2*PI) for h, [0.0, 1.0] for both s and l