2008年4月7日 星期一


void setup(){
size(800,600);
background(0,255,255,25);
noLoop();
}

void draw(){
for(int i=0;i<600;i++)
{
float x,y,lx,ly,co1,co2,co3,co4;
// Random rand = new Random();

x = random(0,800);
y = random(0,600);
lx = random(0,100);
ly = random(0,100);

co1= random(0,255);
co2= random(0,255);
co3 = random(0,255);
co4= random(0,100);
rect(x,y,lx,ly);
fill(co1,co2,co3,co4);
}
}

沒有留言: