2008年5月5日 星期一

花?




code:
void setup() {
size(200, 200);
background(255);
smooth();
noLoop();
}

void draw(){
smooth();
translate(99, 99); // Set initial offset
for (int i = 0; i < 24; i++) { // 18 repetitions
strokeWeight(18); // Increase stroke weight
rotate(PI/12); // Accumulate the rotation
stroke(random(0,255),random(0,255),random(0,255),180);
line(0, 0, 55, 0);
}
}

沒有留言: