Modify a text file: $/z2.pde
$/z2.pde
// Project 2// // singh // float sunX, sunY; void setup() { size(700,700); frameRate (20); sunX=60; sunY=60; } void draw(){ scene(); } void scene(){ background(20,110,300); //grass fill(100,300,50); rect(0,200,700,500); //sun fill(255,255,10); ellipse(sunX,sunY,50,60); if (sunX>width){ sunX=0; sunX= sunX+1; } }