Crate hsl [−] [src]
Represent colors in HSL and convert between HSL and RGB.
Examples
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 });
Structs
HSL |
Color represented in HSL |