2008年5月6日 星期二






void setup() {
size(200, 200);
background(255);
smooth();
noLoop();
}
void draw(){
smooth();
translate(99, 99); // Set initial offset
for (int i = 0; i < 25; i++) { // 18 repetitions
strokeWeight(5); // Increase stroke weight
rotate(50);// Accumulate the rotation
stroke(random(0,255),random(0,255),random(0,255));
line(6, 1, 50, 50);
}
}

沒有留言: