xxxxxxxxxx
31
function setup() {
createCanvas(400, 400);
background(255);
angleMode(DEGREES);
}
var angle = 0; // initialize angle variable
var scalar = 1; // set the radius of circle
var startX = 200; // set the x-coordinate for the circle center
var startY = 200; // set the y-coordinate for the circle center
function draw() {
x = startX + scalar * cos(angle);
y = startY + scalar * sin(angle);
stroke(random(0,255),random(0,255), random(0,255))
fill(random(0,255),random(0,255), random(0,255))
var rad =random(0,400)
ellipse(x, y, 20);
angle++; // increment angle for the next frame
scalar += 1
}