Function opto_xfer_u8

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

Applies an optical transfer function to an 8-bit unsigned integer color component.

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

Converts from linear to sRGB color space.