loop

@JvmName(name = "loopSingle")
fun <T> loop(animationPlan: FiniteNumericAnimationPlan<T, Double>, type: RepetitionType = Restart): NumericAnimationPlan<T, Double>(source)
@JvmName(name = "loopMulti")
fun <T> loop(animationPlan: FiniteNumericAnimationPlan<T, Array<Double>>, type: RepetitionType = Restart): NumericAnimationPlan<T, Array<Double>>(source)

Loops the given animationPlan indefinitely.

Parameters

animationPlan

to repeat

type

of repetition, Restart will start over while Reverse will reverse


@JvmName(name = "loopSingle")
fun <T> loop(animationPlan: FiniteNumericAnimationPlan<T, Double>, type: RepetitionType = Restart, delay: Measure<Time>): NumericAnimationPlan<T, Double>(source)
@JvmName(name = "loopMulti")
fun <T> loop(animationPlan: FiniteNumericAnimationPlan<T, Array<Double>>, type: RepetitionType = Restart, delay: Measure<Time>): NumericAnimationPlan<T, Array<Double>>(source)

Deprecated

use after method instead to add delays

Replace with

after(delay, loop(animationPlan, type))

Loops the given animationPlan indefinitely.

Parameters

animationPlan

to repeat

type

of repetition, Restart will start over while Reverse will reverse

delay

to apply before the animation begins

See also