//forest array prototyping //Nick Ferro sept 20 2015 float horizon; float [] xpos = new float[41]; float [] a50 = new float[41]; float [] a210 = new float[41]; float [] shade = new float[41]; float [] len = new float[41]; float x = 100; void setup(){ size(640,480); background( 100,150,200 ); horizon = height/4; for (int i = 0; i < xpos.length; i++){ xpos [i] = random(0,width); } for (int i = 0; i < a50.length; i++){ a50 [i] = 70 - (i*.5); } for (int i = 0; i < a210.length; i++){ a210 [i] = 200 + (i*.5); } for (int i = 0; i < shade.length; i++){ shade [i] = 175 - (i*3); } for (int i = 0; i < len.length; i++){ len [i] = 60 + (i); } } void draw() { background( 100,150,200 ); fill( 100,200,100 ); noStroke(); rectMode(CORNER); rect( 0,horizon+50, width,height*3/4 ); for (int i = 0; i