xxxxxxxxxx
function setup() {
createCanvas(windowWidth, windowHeight);
centerWidth = windowWidth / 2;
centerHeight = windowHeight / 2;
width = 20;
radius = 100;
angle = 0.01;
background(235);
}
function draw() {
noFill()
showLoder(angle, 100, 0)
for (let i = 0; i <= 5; i++) {
showLoder(angle, radius, random(1000))
radius += 100;
}
angle += 0.4;
}
function showLoder(angle, radius, gap) {
stroke(180);
strokeWeight(width)
circle(centerWidth, centerHeight, radius)
stroke(random(100, 255), random(0, 100), random(100, 255));
arc(centerWidth, centerHeight, radius, radius, PI + angle + gap, PI + HALF_PI + angle + gap);
}