Tween::playCount()
Description
When in a repeating play mode, this returns how many full tweens have occured since the last time start() was called.
Example
import megamu.shapetween.*;

Tween ani;
void setup(){
  colorMode(HSB);
  ani = new Tween(this, 2);
  ani.repeat();
  ani.start();
}

void draw(){
  background(255);

  fill( ani.playCount()*10, 255, 255 );
  	
  ellipse(ani.time()*width, ani.position()*height, 4, 4);
}

void mousePressed(){
  ani.start();
}
Syntax
playCount()
Related
repeat() playMode()