Tween::reverse()
Description
Reverses the direction of the tween, starting from the current position. If the tween is reversed while at an end (when time is 0 or 1) and is not tweening, then calling this function will also switch the starting time and position.
Example
import megamu.shapetween.*;

Tween ani;
void setup(){
  ani = new Tween(this, 2);
}

void draw(){
  background(255);
  ellipse(ani.time()*width, ani.position()*height, 4, 4);
}

void mousePressed(){
  ani.reverse();
}
Syntax
reverse()
Related
setPlayMode()
seek()