//Declare variables (put at the beginning outside of any command) int xpos = 200; // horizontal (x) position int ypos = 250; // vertical (y)position // Code that runs forever goes here -set up the applet void setup() { size(400,550); // applet size background(208,128,254); // color framerate(30); } // draw munequito.... void draw(){ //circle behind munequito fill(#3CD4FA);//aqua fill ellipse(xpos,ypos+27,150,150); noFill(); //head w-green fill fill(#98C51B);//green fill ellipse(xpos,ypos,100,60);//head ellipse(xpos,ypos+20,90,30);//snout noFill(); //smile stroke(#AB3603); bezier(xpos-40, ypos+20, xpos-20, ypos+35, xpos+30, ypos+30, xpos+40, ypos+20); noStroke(); //body fill(#55700B); triangle(xpos,ypos+35, xpos-40, ypos+80, xpos+40, ypos+80); noFill(); //begin eyes with black fill fill(#000000); ellipse(xpos-20, ypos-2, 10, 15);//left eye ellipse(xpos+20, ypos-2, 10,15);//right eye noFill(); //begin arms fill(#DFA916); ellipse(xpos-20,ypos+40,20,10);//left arm ellipse(xpos+15,ypos+50,10,20);//right arm noFill(); } // Draw another gleep at place mouse clicked void mousePressed() { xpos = mouseX; // set horizontal position ypos = mouseY; // set vertical position redraw(); }