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


Animates a function (or method) call over a specified time period, based on starting and ending values for the arguments to the function. The canonical example is animating object.setPosition() by giving starting and ending positions.

__init__(self, startTime, endTime, function, startArgs, endArgs, 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 startArgs and at endTime function is called with endArgs. 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.


Returns the starting arguments.


Returns the ending arguments.


Returns the number of repetitions to be performed, which may be a float.