Modify a text file: $/p1227_A.pde
$/p1227_A.pde
//Singh // float sunX, sunY; float fence; float x2; void setup() { size(500,500); sunX=50; sunY=50; } void draw(){ background(25,60,225); //sun fill(225,225,0); ellipse(sunX,sunY,30,40); stroke(225,220,0); if (sunX > width){ sunX=0; } sunX= sunX+1; //grass fill(0,230,40); rect(0,250,500,250); //house stroke(0); fill(200); rect(80,130,140,70); rect(90,200,120,60); stroke(0); fill(260,0,50); triangle(230,130,150,70,70,130); //roof stroke(255); fill(50); rect(135,140,30,120); //door fill(125,150,160); rect(110,150,10,30); //window fill(125,150,160); rect(190,150,10,30); //window //fence fill(225); fence=0; while (fence