xxxxxxxxxx
27
function setup() {
createCanvas(400, 400);
rectMode(CENTER);
angleMode(DEGREES);
}
function draw() {
background(0);
noStroke();
fill(250, 44, 0);
translate(width / 2, height / 2);
for (let a = 0; a < 12; a++) {
push();
rotate(45 * a);
circle(0, 100, 30);
translate(0, 20);
for (let b = 0; b < 12; b++) {
push();
rotate(45 * b)
fill(250, 250, 0);
circle(0, 100, 10);
pop();
}
pop();
}
}