2008年4月7日 星期一

void setup(){
size(800,600);
background(255,25,255);
noLoop();
}
void draw(){
for(int i = 0 ;i<1000;i++ )
{
float x,y,a,b,c,d,e,f;
x = random(0,800);
y = random(0,600);
a = random(0,100);
b = random(0,100);
c = random(0,255);
d = random(0,255);
e = random(0,255);
f = random(0,100);
rect(x,y,a,b);
fill(c,d,e,f);
}
}

沒有留言: