import megamu.shapetween.*;
Tween ani;
void setup(){
ani = new Tween(this, 2, Tween.SECONDS, Shaper.COSINE);
}
void draw(){
background(255);
ellipse(ani.time()*width, ani.position()*height, 4, 4);
}
Tween( parent, duration )
Tween( parent, duration, durationType )
Tween( parent, duration, durationType, easing )