2008年5月8日 星期四

void setup() {
size(600, 600);
background(0);
smooth();
}
void draw(){
smooth();
if (mousePressed == true){
translate(mouseX, mouseY);
for (int i = 0; i < 30; i++) {
strokeWeight(10);
rotate(PI/15);
stroke(0,0,255,200);
line(50, 50, 50,0);

strokeWeight(20);
rotate(PI/30);
stroke(0,255,0,200);
line(20, 20, 40,0);

strokeWeight(20);
rotate(PI/30);
stroke(255,0,0,200);
line(10, 10, 20,0);
}
}
}

沒有留言: