Tween::setEasingMode()
Description
Alters the easing mode of the current easing. Examples of easing modes are ease in, ease out, ease in and out. This function takes IN, OUT, IN_OUT to satisfy these modes, respectively. SIGMOID is another way of referring to IN_OUT. There is also OUT_IN, which starts fast, slows in the middle and speeds up to end. SEAT is another way of referring to OUT_IN.
Example
import megamu.shapetween.*;

Tween ani;
void setup(){
  ani = new Tween(this, 2);
  ani.repeat();
  ani.setEasing( Tween.COSINE );
}

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

void mousePressed(){
  ani.setEasingMode( Tween.IN );
}

void mouseReleased(){
  ani.setEasingMode( Tween.OUT );
}
Syntax
setEasingMode(easeMode)
Parameters
easeMode
Sets the ease direction for this shape,
Tween.IN, Tween.OUT, Tween.IN_OUT, Tween.OUT_IN
Related
setEasing()
noEasing()
Shaper
setMode()