Function ecolor::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.
pub fn gamma_u8_from_linear_f32(l: f32) -> u8
linear [0, 1] -> gamma [0, 255] (clamped). Values outside this range will be clamped to the range.