Module color_operators::hsl[][src]

Expand description

Data structure for Hue, Saturation, Lightness encoded colors

Example

use color_operators::hsl::HSL;

let hsl = HSL::new(120.0, 1.0, 0.5);

assert_eq!(hsl.get("hue"), Ok(120.0));
assert_eq!(hsl.get("saturation"), Ok(1.0));
assert_eq!(hsl.get("lightness"), Ok(0.5));

Structs

HSL

Data structure for Hue, Saturation, Lightness encoded colors