//Drawing a "guy" and a "dog" void setup(){ size(800, 600); } void draw(){ //draw a blue sky fill(2,170,229); noStroke(); rect(0,0, 800, 300); //draw the green grass fill(8,196,40); noStroke(); rect(0, 300, 800, 300); //draw a sun fill(233, 255, 5); noStroke(); smooth(); ellipse(750, 50, 70, 70); //draw guy's body fill(242, 15, 41); //rect(380, 220, 40, 80); rect(mouseX,mouseY, 40, 80); //draw guy's head fill(240, 221, 203); smooth(); //ellipse(400,200, 40, 40); ellipse(mouseX+20, mouseY-20, 40, 40); //draw guy's legs stroke(0); strokeWeight(12); //line(380, 300, 350, 350); line(mouseX-1, mouseY+120, mouseX+1, mouseY+80); //line(420, 300, 450, 350); line(mouseX+39, mouseY+80, mouseX+40, mouseY+120); //draw dog's head fill(142, 66, 16); noStroke(); ellipse(220, 320, 40, 40); //ellipse(mouseX, mouseY-30, 40, 40); //draw dog's body fill(142, 66, 16); noStroke(); ellipse(169, 340, 80, 40); //draw dog's legs stroke(142, 66, 16); strokeWeight(10); line(142, 330, 130, 370); line(150, 330, 150, 370); line(180, 330, 180, 370); line(200, 334, 200, 370); }