LaggedMap
ABSTRACT
This is an animation operator that takes a bunch of animations and almost puts them all in parallel, but there is a small offset between consecutive animations
PARAMETERS
anims | a vector of animation-trees |
average_offset | the average offset in seconds between consecutive animations |
average_offset | the average offset in seconds between consecutive animations |
unit_map(u) | slightly complicated, but essentially dictates how the offset of any given animation should vary. unit_map(u) should be monotonically non-decreasing and map the interval 0 to 1 onto 0 to 1 |
RETURN
an animation-tree according to the above specification
DECLARATION
func LaggedMap(anims, [offset_details] {[main] {average_offset}, [parameterized] {average_offset, unit_map(u)}})