| 9 | /// - Alpha - a number between 0.0 and 100.0 |
| 10 | #[derive(Debug, Clone, Copy, PartialEq)] |
| 11 | pub struct Lch { |
| 12 | pub lightness: f64, |
| 13 | pub chroma: f64, |
| 14 | pub hue: f64, |
| 15 | pub alpha: f32, |
| 16 | } |
| 17 | |
| 18 | impl Lch { |
| 19 | pub fn new(lightness: f64, chroma: f64, hue: f64, alpha: f32) -> Self { |
no outgoing calls