[][src]Function cichlid::math::dim_u16_lin

pub const fn dim_u16_lin(x: u16) -> u16

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

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