Thursday, January 8, 2009

Homework 1....Doh!

Here is an image of Homer Simpson created using the Processing Graphics Environment.
And Here is the code:

size(200,200);
background(65,198,226);
noStroke();
fill(249, 200, 50);
rect(60,50,65,50);
ellipseMode(CORNER);
ellipse(60,25,65,50);
rect(75,100,50,50);
fill(178,138,16);
arc(50,90,60,50,PI,0);
arc(60,90,50,40,0,PI);
fill(255,255,255);
stroke(0);
ellipse(50,60,26,26);
noStroke();
fill(249, 200, 50);
ellipse(50,81,15,15);
rect(55,81,45,15);
ellipse(116,84,15,15);
fill(255,255,255);
stroke(0);
ellipse(70,60,26,26);
fill(0,0,0);
ellipse(57,72,3,3);
ellipse(83,72,3,3);
line(60,115,80,115);
noFill();
arc(80,18,25,20,PI,0);
arc(90,20,25,20,PI,0);
line(116,84,120,70);
line(120,70,124,84);
line(124,84,129,70);
line(129,70,132,84);

No comments:

Post a Comment