ICM-Homework-Dalit-Shalom-Sep-5-2014
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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