animation

fun <T, V> animation(start: T, end: T, animationPlan: NumericAnimationPlan<T, V>, initialVelocity: Velocity<T>? = null): AnimationPlan<T>(source)

Creates an animation based on animationPlan that goes from start to end. This allows the animation of any T that can be animated using a NumericAnimationPlan.

Parameters

start

value to begin animating from

end

value to animate to

animationPlan

used to drive the animation

initialVelocity

at the start of the animation