Anim

ABSTRACT

The base functor for all animations. It is not recommended you use this functor directly

PARAMETERS
pull&a variable-tree, that can be used to keep track of state. By convention, pull is used for variables we want to write to throughout the animation
push&a variable-tree, that can be used to keep track of state. By convention, push is used for variables we want to read from throuhgout the animation
sentinel(t,dt,pull&,push&)the function that is called each frame with the current time, the changei n time, and references to the user provided pull and push variables. The function should do whatever it wants with the state, and then return 0 to indicate the animation is not finished, 1 if the animation must be finished immediately, or -1 if the animation can exit, but should continue if animations that are in parallel with it are still running
RETURN

an animation that obeys the specified behavior. Note that the animation is not run immediately when it is created.

DECLARATION
func Anim(pull&, push&, sentinel(t, dt, pull&, push&))