Represent colors in HSL and convert between HSL and RGB.
Examples
use HSL;
let yellow = ;
let yellow_hsl = HSLfrom_rgb;
assert_eq!;
Represent colors in HSL and convert between HSL and RGB.
use hsl::HSL;
let yellow = [255, 255, 0];
let yellow_hsl = HSL::from_rgb(&yellow);
assert_eq!(yellow_hsl, HSL { h: 60_f64, s: 1_f64, l: 0.5_f64 });