import megamu.shapetween.*; Shaper circle; void setup(){ circle = new CircularShaper(); circle.setEasingMode( Shaper.SEAT ); } void draw(){ background(255); beginShape(); for( float i=0; i<=1; i+= 0.05 ) vertex( i*width, circle.shape( i )*height ); endShape(); } void mouseMoved(){ circle.setTransitionPoint( norm(mouseX,0,width) , norm(mouseY,0,height) ); }
setTransitionPoint(x)
setTransitionPoint(x,y)