xxxxxxxxxx
42
function setup() {
createCanvas(1080, 1080);
angleMode(DEGREES);
noStroke();
bg = color('#222831');
c1 = color('#00adb5');
radius = 1000;
}
function draw() {
background(bg);
translate(width / 2, height / 2);
rotate(frameCount);
for (i = 0; i < 9; i++) {
fill(c1);
arc(0, 0, radius - i * 100, radius - i * 100, 60 * i, 60 + 60 * i);
fill(bg);
arc(0, 0, radius - (i + 1) * 100, radius - (i + 1) * 100, 60 * i - 1, 61 + 60 * i);
}
fill(bg);
ellipse(0, 0, 100);
fill(c1);
rotate(190);
dis = radius/2-25;
rotate(-2*frameCount);
for (j = 1; j <= 9; j++) {
for (i = 0; i < 1; i++) {
push();
rotate(i * 30);
translate(dis, 0);
ellipse(0, 0, 50);
pop();
}
dis -= 50;
rotate(-60);
}
resetMatrix();
}