//x1 assignment// //Matthew Testa (CST 112; 9/11/15) //GLOBALS point plot and speed float x, y; float dx, dy; float horizon; //SETUP: size void setup() { size (800, 550); horizon = height/3; x = width/2; y = height/2; dx = 4; dy = 5; } //SCENE: objects and shapes void draw() { background(190, 240, 220); // sky // fill(250, 200, 100); ellipse( width*4/5, height/9, 65,65); // sun // fill( 130,230, 120); rect(0, horizon, width, height*4/5); // grass // fill(200,100,60); rect( 100, horizon, width/35, -height/4 ); }