Monday, September 18, 2006

Week 3: Visual abstraction

Wall pattern for girls room and boys room: with the same basic shapes I try to make them more feminine or masculine
according to their arrangement.

void draw() {
size(500,500);
background(200);

if(mousePressed) {

// PLACE BOYS PATTERN HERE

background(255);
for(int y=30; y<571; y=y+180){

for(int x= 10; x< 501; x=x+300) {

translate (30,0);

noStroke();
fill(143,167,106);
rectMode(CENTER);
rect(x+70,y,60,7);
ellipse(x+15,y,50,20);
ellipse(x,y+27,100,40);
ellipse(x-40,y+45,20,10);
ellipse(x-20,y+45,20,10);
ellipse(x,y+45,20,10);
ellipse(x+20,y+45,20,10);
ellipse(x+40,y+45,20,10);


fill(255,0,0,70);


ellipse(x+120,y,5,5);
ellipse(x+120,y,20,20);
ellipse(x+120,y,40,40);
}
}

}
else {

// PLACE GIRL PATTERN HERE

background(100);

for(int x= 10; x< 501; x=x+180) {

for (int y= 80; y<441; y=y+180){

translate (30,0);
noStroke();

rectMode(CENTER);

fill(143,167,106);
rect(x,y+3,6,60);
ellipse(x+30,y,50,20);//ROTATE THIS ONE
ellipse(x-10,y+33,100,40);
ellipse(x+13,y-19,20,10);
ellipse(x-15,y-12,20,10);
ellipse(x+45,y+50,20,10);
ellipse(x+40,y+15,20,10);
ellipse(x-15,y+5,20,10);

fill(255,0,0,70);

ellipse(x,y-45,5,5);
ellipse(x,y-45,20,20);
ellipse(x,y-45,40,40);
}
}
}
}

0 Comments:

Post a Comment

<< Home