void setup() {
size(800, 800);
background(255);
smooth();
}
void draw(){
smooth();
if (mousePressed == true){
translate(mouseX, mouseY);
for (int i = 0; i < 24; i++) {
strokeWeight(10);
rotate(PI/12);
stroke(random(0,255),random(0,255),random(0,255),200);line(0, 0, 60,0);
}
}
}
沒有留言:
張貼留言