repeat

@JvmName(name = "repeatSingle")
fun <T> repeat(animationPlan: FiniteNumericAnimationPlan<T, Double>, times: Int = 1, type: RepetitionType = Restart): FiniteNumericAnimationPlan<T, Double>(source)
@JvmName(name = "repeatMulti")
fun <T> repeat(animationPlan: FiniteNumericAnimationPlan<T, Array<Double>>, times: Int = 1, type: RepetitionType = Restart): FiniteNumericAnimationPlan<T, Array<Double>>(source)

Repeats the given animationPlan for the specified number of times.

Parameters

animationPlan

to repeat

times

to repeat

type

of repetition, Restart will start over while Reverse will reverse


@JvmName(name = "repeatSingle")
fun <T> repeat(animationPlan: FiniteNumericAnimationPlan<T, Double>, times: Int = 1, type: RepetitionType = Restart, delay: Measure<Time>): FiniteNumericAnimationPlan<T, Double>(source)
@JvmName(name = "repeatMulti")
fun <T> repeat(animationPlan: FiniteNumericAnimationPlan<T, Array<Double>>, times: Int = 1, type: RepetitionType = Restart, delay: Measure<Time>): FiniteNumericAnimationPlan<T, Array<Double>>(source)

Deprecated

use after method instead to add delays

Replace with

after(delay, repeat(animationPlan, times, type))

Repeats the given animationPlan for the specified number of times.

Parameters

animationPlan

to repeat

times

to repeat

type

of repetition, Restart will start over while Reverse will reverse

delay

to apply before the animation begins

See also