Function linear_xfer_u8

Source
pub fn linear_xfer_u8(c: &mut u8)
Expand description

Applies a linear transfer function to an 8-bit unsigned integer 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.