Package libavg :: Module avg :: Class EaseInOutAnim

Class EaseInOutAnim


Class that animates an attribute of a libavg node. The animation proceeds in three phases: ease-in, linear and ease-out. Start and end speed are zero. Ease-in and ease-out phases have the shape of one quadrant of the sine curve.

Instance Methods
 
__init__(...)
Raises an exception This class cannot be instantiated from Python

Inherited from unreachable.instance: __new__

Inherited from object: __delattr__, __getattribute__, __hash__, __reduce__, __reduce_ex__, __repr__, __setattr__, __str__

    Inherited from AttrAnim
 
start(...)
Starts the animation.
    Inherited from Anim
 
abort(...)
Stops the animation.
 
isRunning(...)
Returns True if the animation is currently executing
 
setStartCallback(...)
Sets a python callable to be invoked when the animation starts.
 
setStopCallback(...)
Sets a python callable to invoke when the animation has finished running.
Properties

Inherited from object: __class__

Method Details

__init__(...)
(Constructor)

 

Raises an exception This class cannot be instantiated from Python

Parameters:
  • node - The libavg node object to animate.
  • attrName - The name of the attribute to change. Must be a numeric attribute.
  • duration - The length of the animation in milliseconds.
  • startValue - Initial value of the attribute.
  • endValue - Value of the attribute after duration has elapsed.
  • useInt - If True, the attribute is always set to an integer value.
  • easeInDuration - The duration of the ease-in phase in milliseconds.
  • easeOutDuration - The duration of the ease-out phase in milliseconds.
  • onStart - Python callable to invoke when the animation starts.
  • onStop - Python callable to invoke when the animation has finished running, either because it's run the allotted time, because abort has been called or because another animation for the same attribute has been started.
Overrides: object.__init__