speedToTime

expect fun speedToTime(speed: UInt, start: Int, end: Int): UInt

Calculate the time of an animation with a given speed and the start and end values.

Return

The required time in milliseconds for the animation with the given parameters.

Parameters

speed

Speed of animation in unit/sec.

start

Start value of the animation.

end

End value of the animation.

actual fun speedToTime(speed: UInt, start: Int, end: Int): UInt
actual fun speedToTime(speed: UInt, start: Int, end: Int): UInt