float [] px = new float[0]; //temp array float [] py = new float[0]; float [] gx = { -10,10,20,30,40}; //generator data float [] gy = { 0, 0,-10, 0, 0}; float [] bx = { 0,100,200,300,400}; //base data float [] by = { 200, 200,100,200, 200}; void setup(){ size(400,400); } void draw(){ background(200); for(int i=1; i