//void pie(total, incriment, linestart,lineend); void pie(int t, int d, int l1,int l2){ pushMatrix(); int angle=PI-(TWO_PI/t*d); translate(width/2,height/2); stroke(15+(l1*60),15+(h*20)/t*d,255/t*d); int x=sin(angle)*(width-width/5)/255; int y=cos(angle)*(width-width/5)/255; line(x/(l1),y/(l1),x/(l2),y/(l2)); popMatrix(); }