Function egui_animation::animate_repeating
source · pub fn animate_repeating(
ui: &mut Ui,
easing: fn(_: f32) -> f32,
duration: Duration,
offset: f32
) -> f32
Expand description
Creates a repeating animation based on the current time. Useful for e.g. animating a loading spinner. It will repeatedly go from 0.0 to 1.0 and jump back to 0.0.