Module deltae::color [−][src]
Expand description
Manipulate and convert CIE L*a*b* and Lch colors.
Examples
use deltae::*; let lab0: LabValue = "95.08, -0.17, -10.81".parse().unwrap(); let lch0 = LchValue { l: 95.08, c: 10.811337, h: 269.09903, }; assert!(lab0.delta_eq(&lch0, DE2000, 0.01)); let lch0 = LchValue::from(lab0); let lab2 = LabValue::from(lch0); println!("{}", lch0); // [L:89.73, c:7.2094, h:285.1157] assert_eq!(lab0.round_to(4), lab2.round_to(4));
Structs
LabValue | CIEL*a*b* |
LchValue | Lch: Luminance, Chroma, Hue |
XyzValue | CIE 1931 XYZ |
Enums
ValueError | Value validation Error type |