tween

fun <T> tween(converter: SingleDataConverter<T>, easing: EasingFunction, duration: Measure<Time>, delay: Measure<Time> = zeroMillis): 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

delay

to apply before the animation begins


fun <T : Units> tween(units: T, easing: EasingFunction, duration: Measure<Time>, delay: Measure<Time> = zeroMillis): FiniteNumericAnimationPlan<Measure<T>, Double>(source)

See also


fun <T> tween(converter: MultiDataConverter<T>, easings: (dimension: Int) -> Easing, delay: Measure<Time> = zeroMillis): 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.

delay

to apply before the animation begins