Function u32_to_linear

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

Converts an RGBA u32 into a pseudo-linear brightness float array.

The RGB channels are squared, instead of using the normal 2.2 exponent.