【Processing】noise()で

 

 

 

float a = 0;

void setup() {
  size(800, 800);
  background(255);
}


void draw() {

  translate(width/2, height/2);
  rotate(radians(a*0.9));
  noFill();
  fill(255, 70);
  strokeWeight(0.8);
  ellipse(0, (width/2)*noise(a*0.009), 150*sin(radians(a/3)), 300*sin(radians(a/2)));

  a+=1;

  if (a == 360*3) {
    stop();
    save("frame/a+.jpg");
  }
}