timeToFrame

open fun timeToFrame(time: Float, frameRate: Int): Int

Get the frame position at the elapsed time in seconds.

Return

The frame number at the specified time

Parameters

time

Elapsed time of interest in seconds.

frameRate

The frames per second of the animation