tween

fun <T> tween(    converter: SingleDataConverter<T>,     easing: EasingFunction,     duration: Measure<Time>): FiniteNumericAnimationPlan<T, Double>(source)

Creates an animation that manipulates values of type T that are convertable to Double.

Parameters

converter

that maps T to and from Double

easing

used to animate the numeric representation

duration

of the animation


See also


fun <T> tween(converter: MultiDataConverter<T>, easings: (dimension: Int) -> Easing): FiniteNumericAnimationPlan<T, Array<Double>>(source)

Creates an animation that manipulates values of type T that are convertable to an array of Double. Each dimension of T will be animated using a Easing returned by the easings function.

Parameters

converter

that maps T to and from Array<Double>

easings

that map to each dimension of T. The Easing at index i is used to animate the dimension at the same index.