Function linear_xfer_f32

Source
pub fn linear_xfer_f32(c: &mut f32)
Expand description

Applies a linear transfer function to a 32-bit floating-point color component.

This function simulates the gamma correction process by raising the component to the power of 2.2.

Converts from sRGB to linear color space.