function setup() { createCanvas(400, 400); } function draw() { background(0); let time = millis() / 1000; translate(200, 200) noFill(); stroke(255) circle(0, 0, 240) fill(255, 255, 30) circle(0, 0, 50) translate(cos(time) * 120, sin(time) * 120); fill(24, 22, 234); circle(0, 0, 20); translate(cos(time * 3) * 60, sin(time * 3) * 60); fill(222); circle(0, 0, 10); }