Package libavg :: Module anim

Module anim

source code

Provides a framework for time-based animations. Deprecated - there is a better framework in the avg module.

Classes
  SimpleAnim
Base class for animations that change libavg node attributes by interpolating over a set amount of time.
  LinearAnim
Class that animates an attribute of a libavg node by interpolating linearly between start and end values.
  EaseInOutAnim
  SplineAnim
Class that animates an attribute of a libavg node by interpolating between start and end values using a cubic spline.
  ContinuousAnim
Class that animates an attribute of a libavg node continuously and linearly.
  WaitAnim
  ParallelAnim
  StateAnim
  AnimTransition
Functions
 
getNumRunningAnims() source code
 
abortAnim(node, attrName) source code
 
deprecationWarning() source code
 
fadeOut(node, duration, onStop=None)
Fades the opacity of a node to zero.
source code
 
fadeIn(node, duration, max=1.0, onStop=None)
Fades the opacity of a node.
source code
 
init(g_avg) source code
Variables
  g_Player = None
  g_ActiveAnimations = {}
  g_DeprecationWarned = False
Function Details

fadeOut(node, duration, onStop=None)

source code 

Fades the opacity of a node to zero.

Parameters:
  • node - The node to fade.
  • duration - Length of the fade in milliseconds.

fadeIn(node, duration, max=1.0, onStop=None)

source code 

Fades the opacity of a node.

Parameters:
  • node - The node to fade.
  • duration - Length of the fade in milliseconds.
  • max - The opacity of the node at the end of the fade.