import megamu.shapetween.*;
Shaper cosine;
BlendShaper blend;
void setup(){
cosine = new CosineShaper( Shaper.SEAT );
blend = new BlendShaper( cosine );
}
void draw(){
beginShape();
for( float i=0; i<=1; i += 0.05 )
vertex( i*width, height - blend.shape( i )*height );
vertex( width, 0);
endShape();
}
void mouseMoved(){
float y = norm(mouseY, 0, height);
blend.setBlend(y);
}
BlendShaper( shaperOne )
BlendShaper( shaperOne, shaperTwo )
BlendShaper( shaperOne, blend )
BlendShaper( shaperOne, shaperTwo, blend )