Skip to main content

alpha_at

Function alpha_at 

Source
pub fn alpha_at(elapsed: f32) -> f32
Expand description

The envelope: ease in, hold, ease out, then nothing — both ramps on the theme’s one curve, the fade-out its mirror so it leaves as it arrived. A pure function of elapsed seconds, which is what makes it identical at any refresh rate and testable without a device.