xxxxxxxxxx
25
function setup() {
createCanvas(800, 400);
}
function draw() {
background(220, 255, 255, 90);
strokeWeight(3);
let xPosition1 = 100 * cos(frameCount / 20 + 180) + width/2;
let yPosition1 = 100 * sin(frameCount / 20 + 180) + height/2;
let radius = 50;
stroke(255, 100, 150);
circle(xPosition1, yPosition1, radius);
let xPosition2 = 100 * (cos(frameCount / 20)) + width/2;
let yPosition2 = 100 * (sin(frameCount / 20)) + height/2;
stroke(150, 100, 255);
circle(xPosition2, yPosition2, radius);
}