Sets the duration of an Animation, in
frames. Setting a duration overrides any previously set duration,
including one defined by setDuration().
(Frame rate can be controlled using Processing's framerate()
method.)
To retrieve the percentage complete that the Animation is, use
currentPercentage().
|