Class SimpleAnim
source code
Base class for animations that change libavg node attributes by
interpolating over a set amount of time. Constructing an animation object
starts the animation. If abort() isn't needed, there is no need to hold
on to the object - it will exist exactly as long as the animation lasts
and then disappear.
The animation framework makes sure that only one animation per
attribute of a node runs at any given time. If a second one is started,
the first one is silently aborted.
|
__init__(self,
node,
attrName,
duration,
useInt,
onStop,
onStart) |
source code
|
|
|
|
|
|
|
|
|
isDone(self)
Returns True if the animation has run its course. |
source code
|
|
Stops the animation. Does not call onStop()
|