Code/Processing
stair
maetel
2006. 8. 11. 20:31
assignment from chang - 
my work:
one cut:

my work:
void setup(){
size(600,600);
background(100);
frameRate(4);
}
void draw(){
translate(20,20);
noStroke();
for(int x=0; x<11; x+=1){
for(int y=x; y<11; y+=1) {
fill(255-random(60),150+random(-20,20),200+random(-10,10));
rect(10+50*x, 10+50*y, 40,40);
}
}
}
size(600,600);
background(100);
frameRate(4);
}
void draw(){
translate(20,20);
noStroke();
for(int x=0; x<11; x+=1){
for(int y=x; y<11; y+=1) {
fill(255-random(60),150+random(-20,20),200+random(-10,10));
rect(10+50*x, 10+50*y, 40,40);
}
}
}
one cut:
