Tween::noRepeat()
Description
Turns off repeating, causing the tween to stop after it has finished playing, this is the default action of a Tween.

This is identical to playMode(Tween.ONCE).
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
noRepeat()
Related
repeat()
setPlayMode()