Function srgb::normalised_from_xyz

source ·
pub fn normalised_from_xyz(xyz: impl Into<[f32; 3]>) -> [f32; 3]
Expand description

Converts a colour in an XYZ colour space into a normalised sRGB representation.

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