Skip to content

Instantly share code, notes, and snippets.

@Kelsin33
Created September 13, 2017 13:51
Show Gist options
  • Save Kelsin33/4f58549d422c8967a9a8be65060997a0 to your computer and use it in GitHub Desktop.
Save Kelsin33/4f58549d422c8967a9a8be65060997a0 to your computer and use it in GitHub Desktop.
ICM week one
function setup() {
createCanvas(600, 600);
background(204);
}
function draw(){
//hair
stroke(0,0,0);
fill(0,0,0);
ellipse(275,270,120,120);
//head & neck
stroke(51,25,0);
fill(51,25,0);
ellipse(275,270,90,90);
strokeWeight(9);
line(275,319,275,330);
//eyes
stroke(0,0,0);
fill(0,0,0);
ellipse(255,270,10,10);
ellipse(285,270,10,10);
//mouth
stroke(0,0,0);
fill(255,255,255);
strokeWeight(2);
triangle(301,290,270,300,245,290);
//body
stroke(128,128,128);
fill(128,128,128);
rect(255,330,40,60);
//fill(2);
//arms
stroke(51,25,0);
strokeWeight(6);
line(330,340,295,335);
line(255,338,220,350);
//legs
stroke(0,0,51);
fill(0,0,51);
rect(255,390,40,50);
stroke(0,0,0);
line(275,400,275,440);
//shoes
stroke(0,0,0);
strokeWeight(2);
fill(224,224,224);
ellipse(293,440,30,20);
ellipse(260,440,30,20);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment