import megamu.shapetween.*; Shaper cosine = new CosineShaper(); beginShape(); for( float i=0; i<=1; i+= 0.05 ) vertex( i*width, cosine.shape( i )*height ); endShape();
shape(in)