tween

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.


Deprecated

use after method instead to add delays

Replace with

after(delay, tween(converter, easing, duration))

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

See also


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

Deprecated

use after method instead to add delays

Replace with

after(delay, tween(units, easing, duration))

See also


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

Deprecated

use after method instead to add delays

Replace with

after(delay, tween(converter, easings, duration))

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

See also