9.9.13

ICM Week 1

Sept 9th, 2013.

Here is my first assignment for Intro to Computational Media:




This was a lot of fun to work on. I spent way too much time on it though. Highlights include figuring out layering, transparency(not pictured here) and the attention Dan Shiffman's wild gesticulations got from my neighbours while I watched his video in a coffee shop.

I had some very frustrating moments associated with creating curved lines. I read ahead in Shiffman's "Processing,"  but found the instructions on using the 'arc' function did not allow me to grasp the concept of radians; not to mention, operationalize the concept and form commands to create the desired shapes. I attended a resident help session and found it to be most informative. I hope they are held every week!


two hour Nike symbol:
the nose knows:



The Code:

void setup(){

size(600,600);
background(0, 230, 240);
}
void draw(){
//big hair
fill(0);
stroke(0);
ellipseMode(CENTER);
ellipse(300,155,210,310);
//neck
fill(255, 210, 200);
ellipseMode(CENTER);
ellipse(300,270,65,190);
//face
fill(255, 210, 200);
ellipseMode(CENTER);
ellipse(300,115,135,180);
//mouth
fill(255,0,0);
stroke(255,0,0);
line(285,168,316,168); 
arc(300, 168, 45, 18, 0, PI);
//nose
fill(255, 210, 200);
stroke(0);
arc(293, 150, 15, 10, PI/2,PI*3/2);
//fill(255,210,200);
stroke(0);
arc(308, 150, 15, 10, -PI/2,PI/2);
//BRIDGE
fill(255, 210, 200);
stroke(0);
ellipseMode(CENTER);
ellipse(300,132,24,50);
fill(255, 210, 200);
stroke(255,210,200);
ellipseMode(CENTER);
ellipse(300,127,37,50);
//hair
fill(0);
stroke(0);
rectMode(CENTER);
rect(300,50,116,50);
//body
fill(0);
stroke(0);
rectMode(CENTER);
rect(300,400,120,340);
//boobs
fill(0);
stroke(0);
ellipseMode(CENTER);
ellipse(300,290,145,100);
//butt
fill(0);
stroke(0);
ellipseMode(CENTER);
ellipse(300,400,145,100);
//leg hole
stroke(0, 230, 240);
fill(0, 230, 240);
rectMode(CENTER);
rect(300,510,50,130);
//left foot
fill(255, 210, 200);
stroke(0);
ellipseMode(CORNERS);
ellipse(195,555,285,600);
//right foot
fill(255, 210, 200);
stroke(0);
ellipseMode(CORNERS);
ellipse(320,555,410,600);
//arms
stroke(0);
line(300,300,80,160);
line(340,215,440,375);
//lefthand
fill(255, 210, 200);
stroke(0);
ellipseMode(CORNERS);
ellipse(60,150,95,170);
//righthand
fill(255, 210, 200);
stroke(0);
ellipseMode(CORNERS);
ellipse(440,370,475,390);
//left thumb
fill(255, 210, 200);
stroke(0);
ellipseMode(CORNERS);
ellipse(93,140,98,160);
//right thumb
fill(255, 210, 200);
stroke(0);
ellipseMode(CORNERS);
ellipse(440,375,445,395);
//shoes
//left shoe
fill(0);
line(195, 600, 285, 600);
ellipseMode(CORNERS);
ellipse(195,555,285,600);
//right shoe
fill(0);
line(320, 600, 410, 600);
ellipseMode(CORNERS);
ellipse(320,555,410,600);
//right eye
fill(255);
stroke(0);
ellipseMode(CENTER);
ellipse(330,110,28,15);
//left eye
fill(255);
stroke(0);
ellipseMode(CENTER);
ellipse(270,110,28,15);
//right pupil
fill(0);
ellipseMode(CENTER);
ellipse(330,110,10,10);
//left pupil
fill(0);
ellipseMode(CENTER);
ellipse(270,110,10,10);
//left NIKE
fill(255);
stroke(255);
arc(246, 580, 16, 13, 0, PI);
line(245,583,267,571);
line(245,584,267,571); 
line(245,585,267,571); 
line(246,585,267,571);
line(247,586,267,571);
line(248,587,267,571);
//bottom
line(246,580, 237,575);
line(246,580, 237,576);
line(246,581, 237,577);
line(246,582, 237,578);
line(246,583, 237,578);
line(246,584, 237,578);
line(246,584, 237,577);
line(246,585, 237,577);
line(246,585, 237,580);
//right NIKE
fill(255);
stroke(255);
arc(354, 580, 16, 13, 0, PI);
line(355,583,333,571);
line(355,584,333,571); 
line(355,585,333,571); 
line(354,585,333,571);
line(352,586,333,571);
line(353,587,333,571);
//bottom
line(354,580, 363,575);
line(354,580, 363,576);
line(354,581, 363,577);
line(354,582, 363,578);
line(354,583, 363,578);
line(354,584, 363,578);
line(354,584, 363,577);
line(354,585, 363,577);
line(354,585, 363,580);
//LEFT sock
stroke(0);
fill(255);
rectMode(CORNER);
rect(238,540,38,14);
//RIGHT sock
stroke(0);
fill(255);
rectMode(CORNER);
rect(324,540,38,14);
//CHAINZ
fill(0);
stroke(255,215,0,200);
arc(300,255,70,125,0,PI);
//left brow
fill(255, 210, 200);
stroke(0);
arc(269,98,30,9,-PI,0);
//right brow
fill(255, 210, 200);
stroke(0);
arc(331,98,30,9,-PI,0);

}