xxxxxxxxxx
let cnt=1
function setup() {
createCanvas(400, 400);
background(220);
noLoop();
}
function draw() {
let dia = random(300);
if(dia>200){
fill(0,0,255);
}else if(dia>100){
fill(255,0,0);
} if(100>=dia) {
fill(0,255,0);
}
while (cnt <= 10) {
circle(width/5,height/2,dia);
width += 100;
cnt += 1; }
}