// variables int xpos = 5; int ypos = 5; void setup() { /*used to define initial properties; variables declared within setup() are not acessible withing other functions, including draw()*/ size(400, 400); background(255); //color "white" noStroke(); smooth(); noLoop(); // only draw once } void draw() { //draw bunny fill(102,153,255);//color "blue" _______________________ ellipse(xpos+195, ypos+195, 25, 25); //head ellipse(xpos+185, ypos+155, 15, 60);//left ear ellipse(xpos+205, ypos+155, 15, 60);//right ear ellipse(xpos+205,ypos+243,15,15);//left foot ellipse(xpos+185,ypos+243,15,15);//right foot ellipse(xpos+215,ypos+220,10,10);//left paw ellipse(xpos+175,ypos+220,10,10);//right paw fill(255); //color "white" _______________________ ellipse(xpos+185, ypos+155, 10, 50);//left inner ear ellipse(xpos+205, ypos+155, 10, 50);//right inner ear ellipse(xpos+190,ypos+195,5,5);//left eye ellipse(xpos+200,ypos+195,5,5);//right eye triangle(xpos+193, ypos+202, xpos+196, ypos+205, xpos+200, ypos+202); //nose fill(160, 153, 255);//color "lavendar" _______________________ rect(xpos+183,ypos+210,25,25);//body } // draw another bunny when mouse is pressed void mousePressed() { xpos = mouseX-200; ypos = mouseY-200; redraw(); } // delete all bunnies except last one void keyPressed() { background(255); redraw(); // redraw last bunny }