Tween::repeat()
Description
Turns on repeating, causing the tween to loop continuously after it has finished playing.

This is identical to setPlayMode(Tween.REPEAT).
Example
import megamu.shapetween.*;

Tween ani;
void setup(){
  ani = new Tween(this, 50, Tween.FRAMES);
  ani.repeat();
  ani.start();
}

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

void mousePressed(){
  ani.noRepeat();
}
Syntax
repeat()
Related
noRepeat()
setPlayMode()