[−][src]Function colorspace::lab::xyz_to_lab
pub fn xyz_to_lab<T, X1: Into<XYZ<T>>, X2: Into<XYZ<T>>>(
xyz: X1,
ref_white: X2
) -> Lab<T> where
T: Real,
Convert an XYZ color to a Lab colour with the given reference white. Lab colours are normally specified relative to D50, so if your XYZ is relative to something else, you might want to convert it first using the chromatic_adaptation module.