Monday, September 18, 2006

Week 3: Visual Abstraction

Passive_dynamic composition
void setup(){
size(600,400);
}
void draw() {
background(200);

if(mousePressed) {

// PLACE DYNAMIC GRAPHICS HERE
fill(0);
quad(350,190,540,119,555,159,363,227);

fill(255);
quad(235,341,524,151,534,167,246,357);

quad(268,103,327,64,441,243,379,283);

fill(0);

quad(264,161,406,121,424,182,280,222);

fill(255);

quad(142,152,387,68,396,90,151,172);

fill(0);
quad(103,179,252,160,261,232,113,252);

fill(255);
quad(50,235,304,167,309,181,53,250);


}
else {

// PLACE PASSIVE GRAPHICS HERE
int x;

smooth();

x=width/2;


rectMode (CENTER);
fill(255);
rect(x,90,25,20);
rect(x,125,80,30);
/*

*/
rect(x,165,210,40);


for(int y=200;y<291;y=y+30) {
fill(0);
rect(x,y,y,16);
}
rect(x,320,450,20);


}
}

0 Comments:

Post a Comment

<< Home