//Thomas Wu- Prof. Calli Higgins-2/6/13- Homework 2.1 part 3
//have trouble uploading my creation but here is the code.
void setup() {
size(800,600);
}
void keyPressed(){
background(mouseX,mouseY,44);
}
void mousePressed(){
fill(mouseX,mouseY,0);//set red color
rect(0,0,200,300);//uno rectangle
fill(mouseX,mouseY,255);//set color blue
rect(0,360,200,700);//2nd rectangle
fill(mouseX,mouseY,0);//set color green
rect(559,0,230,200);//3rd rectangle
fill(mouseY,mouseX,115);//Set color to grey
rect(200,200,200,200);//4th rectangle
}
void draw(){
//face
fill(39,160,54);
ellipse(400,300,200,200);
//eyes
fill(39,109,227);
ellipse(360,260,25,25);
ellipse(430,260,25,25);
fill(0,255,0);
ellipse(360,260,12,12);
ellipse(430,260,12,12);
fill(0,0,0);
ellipse(360,260,5,5);
ellipse(430,260,5,5);
//body
fill(31,147,111);
rect(370,397,60,100);//inserting rectangle
}