Function vignette

Source
fn vignette(img: &mut Frame, radius: f32, softness: f32, strength: f32)
Expand description

Darken by strength outside radius (0..1.5 of the half diagonal) with a softness falloff.