Package libavg :: Module anim

Module anim

source code

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

fadeIn(node, duration, max=1.0)

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.

fadeOut(node, duration)

source code 
Fades the opacity of a node to zero.
Parameters:
  • node - The node to fade.
  • duration - Length of the fade in milliseconds.