Function retro_pixel::u32_ext::linear_to_u32 [−][src]
pub fn linear_to_u32(linear: [f32; 4]) -> u32
The inverse of u32_to_linear
.
The RGB channels are converted into sRGB using sqrt instead of the normal
-2.2 exponent. Each input channel should be in the [0.0, 1.0]
range, out
of range values will give you very strange results.