2.1 animation
(require qtops/qualities/animation) | package: qtops |
The animation quality provides a thing with a list of animations the ability to execute them on a schedule. Typically, animations are triggered by scheduling them within the thingβs universe.
NOTE: things with the animation quality are assumed to exist within a universe.
procedure
(animations t) β procedure?
t : procedure? (animations) β list?
procedure
(set-animations! t) β procedure?
t : procedure? (set-animations! A) β void A : list?
(list symbol integer integer)
Where the symbol is a procedure that t has, that will be called when tβs animate procedure is called, the first integer is the frequency (in moments, a concept from the time quality.), and the second integer is the % chance of the procedure actually being called.
Alternatively, either or both integers can be a procedure, as long as those procedures return integers.