ecolor

Function linear_u8_from_linear_f32

Source
pub fn linear_u8_from_linear_f32(a: f32) -> u8
Expand description

linear [0, 1] -> linear [0, 255] (clamped). Useful for alpha-channel.