endlessAnimation

fun <T> endlessAnimation(interval: Long, unit: TimeUnit, init: AnimationImpl<T>.() -> Unit): Animation<T>

Builds a new animation, which runs endless unless stopped

To start the animation use the AnimationManager

Return

new animation which when started runs endless

Author

Devin

Since

1.0.0

Parameters

T

the class to run the animation on

interval

the delay between 2 frames

unit

the timeunit for the interval

init

the init function

See also