Skip to content

Instantly share code, notes, and snippets.

@dashalom
Created September 5, 2014 21:38
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save dashalom/1ddf8b2dd85c095caaf0 to your computer and use it in GitHub Desktop.
ICM-Homework-Dalit-Shalom-Sep-5-2014
void setup() {
size(600,400);
background(188, 187, 182);
}
void draw() {
//let's draw a raccoon in processing!
//outer ears
stroke(137, 137, 132);
fill(137, 137, 132);
triangle(280, 150, 170, 150, 170, 70);
stroke(137, 137, 132);
fill(137, 137, 132);
triangle(320, 150, 430, 150, 430, 70);
//inner ears
stroke(255, 209, 192);
fill(255, 209, 192);
triangle(190, 150, 170, 150, 170, 70);
stroke(255, 209, 192);
fill(255, 209, 192);
triangle(410, 150, 430, 150, 430, 70);
//top part head
stroke(137, 137, 132);
fill(137, 137, 132);
arc(300, 220, 320, 240, PI, TWO_PI);
//mask over eyes
stroke(239, 239, 236);
fill(239, 239, 236);
arc(225, 220, 170, 100, PI, TWO_PI);
stroke(239, 239, 236);
fill(239, 239, 236);
arc(375, 220, 170, 100, PI, TWO_PI);
//bottom face
stroke(60, 60, 57);
fill(60, 60, 57);
triangle(142, 220, 458, 220, 300, 340);
//above nose
stroke(239, 239, 236);
fill(239, 239, 236);
arc(300, 342, 200, 150, PI+QUARTER_PI, TWO_PI-QUARTER_PI);
//nose
stroke(137, 137, 132);
fill(137, 137, 132);
arc(300, 342, 100, 75, PI+QUARTER_PI, TWO_PI-QUARTER_PI);
//eyes
stroke(239, 239, 236);
fill(239, 239, 236);
ellipse(280, 250, 15, 15);
ellipse(320, 250, 15, 15);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment