xxxxxxxxxx
n = 0;
c= 10;
function setup() {
createCanvas(1000, 1000);
background(0);
}
function draw() {
fr=120;
frameRate(fr)
a = n*155.5;
r= c* sqrt(n);
x=r*cos(a)+ width/2;
y=r*sin(a)+ height/2;
fill(250,250,0);
ellipse(x, y,35, 35);
n++;
}