Fade

ABSTRACT

This is a follower animation. For all meshes present in the iterator but not in the follower, a fade in animation will be applied. For all meshes present in the follower but not in the iterator, a fade out animation will be applied. After the animation, the corresponding followers are set to the value of the iterator.

PARAMETERS
meshes&A variable-tree corresponding to iterators that the animation should apply to (no scene variables are allowed)
timethe amount of seconds that the animation should take
timethe amount of seconds that the animation should take
unit_map(u)defaults to smooth(u). If provided, it is essentially a rate function that controls the timing of this animation. It is given the normalized time from 0 to 1 and should spit out a normalized time from 0 to 1.
deltadefaults to the zero vector. If provided, it is the delta position that meshes will translate throughout the animation.
RETURN

Returns an animation that, when executed, will fades in the insertions and fades out the deletions

DECLARATION
func Fade(meshes&, [config] {[main] {time}, [parameterized] {time, unit_map(u), delta}})