pub fn u8_from_xyz(xyz: impl Into<[f32; 3]>) -> [u8; 3]
Expand description
Converts a colour in an XYZ colour space into 24-bit sRGB representation.
This is just a convenience function which wraps gamma (see gamma
module)
and XYZ (see xyz
module) conversions function together.