hsl-ish 0.1.0

A dead simple implementation of the HSL color space; indended for conversion to the RGB color space.
Documentation
1
2
3
4
5
6
7
8
9
10
mod hsl;
mod rgb;
use hsl::Hsl;
use rgb::Rgb;
fn main() {
  let h = Hsl::new(120.0, 1.0, 0.5);
  let c = Rgb::from(h);

  println!("{:?}", c);
}