[−][src]Function sulis_state::animation::get_current_frame
pub fn get_current_frame(
elapsed: Duration,
frame_time: u32,
max_index: usize
) -> usize
Helper function to return the number of frames elapsed for the 'elapsed' duration. This is equal to the duration divided by 'frame_time'. The value is capped by 'max_index'