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