keyFrames
fun <T> keyFrames( converter: SingleDataConverter<T>, duration: Measure<Time>, frames: KeyFrameBlock<T>.() -> Unit): FiniteNumericAnimationPlan<T, Double>(source)
Creates an animation that manipulates values of type T that are convertable to a Double.
keyFrames(converter, duration) {
value1 at duration * 0 then easeInElastic
value2 at duration * 1/3 then linear
value3 at duration * 2/3 then easeOutBack
}
Content copied to clipboard
Parameters
converter
that maps T to and from Array<Double>
duration
of the animation
frames
defining the animation key points
fun <T> keyFrames( converter: MultiDataConverter<T>, duration: Measure<Time>, frames: KeyFrameBlock<T>.() -> Unit): 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 the definitions within frames.
Parameters
converter
that maps T to and from Array<Double>
duration
of the animation
frames
defining the animation key points