int points = 20; // max points float cW; // creature width double vyD,cj,cjc; float vx,vy,mj,inc; // vertex x,y, current jump float xdiff = 160; float[] vxA = new float[points]; float[] vyA = new float[points]; void setup(){ size(500,400); cW = width/1.5; mj=height/10; } void draw(){ background(255); stroke(0); fill(0); smooth(); strokeWeight(3); beginShape(); // draw a skeleton first for(int i=0; i1){cjc = 1;} cj*=cjc*1.4; }else{ cj = 0; } vyD = height/2 + cj; // double type needs to be converted to float before drawing a vertex vy = (float) vyD; // drawing vertex curveVertex(vx,vy); vxA[i]=vx; vyA[i]=vy; } endShape(); // skeleton ended for(int i=0; i