Function ecolor::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.
pub fn linear_u8_from_linear_f32(a: f32) -> u8
linear [0, 1] -> linear [0, 255] (clamped). Useful for alpha-channel.