ecolor

Function gamma_u8_from_linear_f32

Source
pub fn gamma_u8_from_linear_f32(l: f32) -> u8
Expand description

linear [0, 1] -> gamma [0, 255] (clamped). Values outside this range will be clamped to the range.