Function linear_to_u32

Source
pub fn linear_to_u32(linear: [f32; 4]) -> u32
Expand description

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.