2006. 8. 11. 20:31
Code/Processing
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:
'Code > Processing' 카테고리의 다른 글
simple wave test (0) | 2007.08.30 |
---|---|
clock (0) | 2006.06.19 |