Animations.Animation
— TypeAnimation{T}
An Animation that contains a Vector
of Keyframe
s and a Vector
of Easing
s
Animations.Animation
— MethodAnimation(kfs::Vector{Keyframe{T}}, easing::Easing) where T
Create an Animation
from a Vector
of Keyframe
s and one Easing
that is repeated for every pair of keyframes.
Animations.AnimationTask
— TypeAnimationTask
A thin wrapper around a Task
together with an interrupt_switch that signals the animation loop to exit.
Animations.EasedEasing
— TypeMixes two easings with a factor decided with a third easing, so that final = (1 - easing()) * e1 + easing() * e2
Animations.MixedEasing
— TypeMixes two easings with a constant ratio r, so that final = e1 * r + e2 * (1 - r)
Animations.MultipliedEasing
— TypeMultiplies two easings with each other, so final = e1 * e2
Animations.animate_async
— Methodanimate_async(f::Function, anims::FiniteLengthAnimation...; duration::Real, fps::Int = 30)
Start an asynchronous animation where in each frame f
is called with the current animation time as well as the current value of each Animation
in anims
.
Returns an AnimationTask
which can be stopped with stop(animationtask)
.
Example:
animate_async(anim1, anim2) do t, a1, a2
# do something (e.g. with a plot or other visual object)
end
Animations.stop
— Methodstop(at::AnimationTask)
Stop a running AnimationTask
. This only sets a flag for the animation loop to exit, it won't kill a task that is stuck. You can manipulate the Task
stored in the AnimationTask
directly if you need more control.