void setup() {
size(800, 600);
background(0);
smooth();
}
void draw()
{
if (mousePressed == true) {
stroke(255,150,55);
translate(mouseX,mouseY);
for (int i = 0; i < 10; i++) { // 18 repetitions
strokeWeight(15); // Increase stroke weight
rotate(PI/4); // Accumulate the rotation
line(5,5,20, 25);
}}}
沒有留言:
張貼留言