見出し画像

Processing 素材1

creativecodingで使えそうな素材ができました。保存しておきます。

//AKITCH_code
float step=0;
void setup() {
 size(900, 900);
 background(0);
}
void draw() {
 noFill();
 translate(width/2, height/2);
 for (float i=0; i<step/5; i=i+PI/2) {
   stroke(255);
   rotate(i);
 }
 rect(0, 0, step, step);
 step=step+1;
 if (step>300) {
   step=0;
 }
}