2008年5月13日 星期二

先PO程式碼

float angle = 0.0;void setup(){background(0);size(600,600);smooth();stroke(255, 120);strokeWeight(8);line(300, 300, 300, 600);
}
void draw(){/*background(0);translate(300, 300); // Set initial offsetfor (int i = 0; i < 50; i++) { // 18 repetitionsstrokeWeight(i/2); // Increase stroke weightrotate(PI/2); // Accumulate the rotationline(0, 0, 100, 0);stroke(255,125,200);fill(255);ellipse(0,0,50,50);}*/
if(mouseButton == LEFT) {angle = angle + 0.02;translate(300, 300);rotate(angle);for (int i = 0; i < 50; i++) { // 18 repetitionsstrokeWeight(i/2); // Increase stroke weightrotate(PI/2); // Accumulate the rotation line(0, 0, 100, 0);stroke(255,125,200);//background(0);
}
}
}


先PO程式碼= =
等我回家修改過後在把網路版的PO上來

沒有留言: