2008年5月6日 星期二


size(800,600);
background(255);
smooth();
translate(400, 300);
for (int i = 0; i<30;i++){
stroke(random(255,255),random(0,160),random(128,255));
strokeWeight(i);
rotate(PI/5);
line(0, 0, 55, 0);
}




void setup(){
size(800,600);
background(255);
smooth();
translate(400, 300);
}
void draw(){
if (mousePressed == true)
{
translate(mouseX,mouseY);
for(int i=0;i<30;i++){
stroke(random(255,255),random(0,160),random(128,255));
strokeWeight(i);
rotate(PI/5);
line(0, 0, 55, 0);
}
}
}

沒有留言: