Function threshold

Source
fn threshold(img: &mut Frame, level: f32, softness: f32, per_channel: bool)
Expand description

Posterise to black/white at level with a softness-wide ramp, on luma or per channel.