Tween::seek()
Description
Sets the time of the tween, simultaniously changing the position based on the easing shape function. This allows you to jump to a particular point in the tween for fast-forward or reverse.
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.pause();
}

void mouseReleased(){
  ani.resume();
}

void mouseDragged(){
  ani.seek( norm(mouseX, 0, width) );
}
Syntax
seek(time)
Parameters
time
float: The time to seek to, a number between 0 and 1
Related
time()