animation

fun animation(time: UInt, start: Int, end: Int, init: Animation.() -> Unit): Animation

Creates a new animation that is initialized.

Return

A new Animation instance.

Parameters

time

Duration of the animation in ms.

start

The start value

end

The end value.

init

The animation initializer.