Skip to main content

frame

Function frame 

Source
fn frame(millis: u32, size: u32, images: &[Image]) -> Image
Expand description

Pick which animation frame to show for the elapsed time, so animated cursors (a spinner, a progress ring) actually advance instead of freezing on frame zero; it maps the time onto the frames by cycling their cumulative delays.