cssparser::color

Function clamp_floor_256_f32

Source
pub fn clamp_floor_256_f32(val: f32) -> u8
Expand description

Round and clamp a single number to a u8.