PVector_ellipse06

PVector pos;
PVector vel;
float rad;
float noise = 0.1;

void setup() {
  size(500, 500);
  colorMode(HSB, 360, 100, 100, 100);
  smooth();
}

void draw() {

  rad = radians(frameCount);
  float x =  (100*cos(rad)) + noise;
  float y =  (100*sin(rad)) + noise;

  pos = new PVector(x, y);
  vel = new PVector(random(-10, 10), random(-10, 10));

  pos.add(vel);
  
  ellipse(pos.x, pos.y, 10, 10);

  noise = noise + 0.1;
}

螺旋を描こうとしたけど失敗.見事に失敗.