Glimmr Canvas Animation
version 1/111030 by Erik Temple
Chapter - Deciding whether animation is happening
[There are actually two steps to deciding whether animation is happening:
1. Is the timer running?
2. If it is, is there an active animation track?
If the answer to both is yes for any given tick of the timer, then the animation rules will be triggered.]
Definition: An animation track (called the item) is animation-active if the animation-flag of the item is g-active.
To decide whether animation is queued:
if there is an animation-active animation track, decide yes.
To decide whether animation is underway:
if there is an animation-active animation track and the global timer interval > 0, decide yes.