reset method

void reset()

Resets the animation, like it would just have been created.

Implementation

void reset() {
  clock = 0.0;
  elapsed = 0.0;
  currentIndex = 0;
  _done = false;
}