Skip to main content

fade_out

Function fade_out 

Source
pub fn fade_out(
    surface: &TfSurface<'_>,
    fade_frames: usize,
    out: &mut [f32],
) -> Result<usize, SurfaceEditError>
Expand description

Fade out: ramp gain from 1 to 0 over the last fade_frames frames.