2010 October 12 / j|d|a|v|i|s|@|c|a|r|l|e|t|o|n|.|e|d|u


Inherits from Positioner. Animates a function (or method) call over a specified time period, based on a zero value and displacement value for the arguments to the function. The canonical example is animating object.translate() by giving the zero vector and a displacement vector, but can be used in various other situations.

__init__(self, startTime, endTime, function, zeroArgs, displacementArgs, repetitions=1, rescaler=None)

Initializes the animation to run from startTime to endTime (in seconds, as given by time.time()). The animation behaves as if at startTime function is called with zeroArgs, and upon each time step delta function is called with zeroArgs + delta * displacementArgs. If repetitions is None, then the animation loops forever; otherwise, it loops for the specified whole number of repetitions. The rescaler is an optional function that takes in a float between 0 and 1 and returns a float between 0 and 1. For example, the utility function bopagopa.cubicBijection() causes the animation to begin and finish softly.