//// Trees float horizon; color sky= color( 110, 110, 250 ); color grass= color( 160, 255, 160 ); Tree t1, t2, t3; void setup() { size( 800, 600 ); horizon = height/3; t1 = new Tree(); } void draw() { background(sky); fill(grass); rect( 0,horizon, width,height-horizon ); t1.show(); } class Tree { float x=200,y=200, w=100,h=200; color leaves= color( 150, 200, 150 ); color bark= color( 120, 90, 90 ); void show() { fill(bark); rect( x-20,y, 40,h ); fill(leaves); ellipse(x,y, w,w); } }