pub fn animate_continuous(
    ui: &mut Ui,
    easing: fn(_: f32) -> f32,
    duration: Duration,
    offset: f32
) -> f32
Expand description

Creates a continuous animation based on the current time. Useful for e.g. animating a bouncing ball. It will repeatedly go from 0.0 to 1.0 and back to 0.0.