Skip to main content

fade_alpha

Function fade_alpha 

Source
pub(crate) fn fade_alpha(fade_start: Option<Instant>, now: Instant) -> f32
Expand description

Global fade-out opacity in 0..=1. Returns 1.0 until fade_start is set, then ramps linearly to 0.0 over FADE_OUT. Shared by both backends.