Skip to main content

fade_alpha

Function fade_alpha 

pub fn fade_alpha(t: f64, strength: f32) -> f32
Expand description

The fade’s opacity at t (0 at the strong edge, 1 at the clear one): a smoothstep from strength to clear, flat at both ends so neither end of the fade reads as a line.