[][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 and 1.0.
  • Outputs [0.0, 2*PI) for h, [0.0, 1.0] for both s and l