[][src]Function cichlid::math::dim_u8_lin

pub const fn dim_u8_lin(x: u8) -> u8

Dims a u8 similar to dim_raw, but linearly below a threshold.

When the input is less than equal to255 / 2, the output is dimmed by halving.