Function srgb::xyz_from_u8

source ·
pub fn xyz_from_u8(rgb: impl Into<[u8; 3]>) -> [f32; 3]
Expand description

Converts a 24-bit sRGB colour into XYZ colour space.

This is just a convenience function which wraps gamma (see gamma module) and XYZ (see xyz module) conversions function together.