Package libavg :: Module anim

Module anim

source code

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.
  SplineAnim
Class that animates an attribute of a libavg node by interpolating between start and end values using a cubic spline.
Functions
 
fadeOut(node, duration)
Fades the opacity of a node to zero.
source code
 
fadeIn(node, duration, max)
Fades the opacity of a node.
source code
 
init(Player) source code
Function Details

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.

fadeIn(node, duration, max)

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.