SOURCE

let d;
function setup(){
    createCanvas(500,500);
    background(255);
    colorMode(HSB,360,100,100);
    noStroke();
    frameRate(10);
    //frameRate(60);
}

function draw(){
    for(let y=0;y<=500;y+=100){
        for(let x=0;x<=500;x+=100){
            fill(random(360),100,100);
            ellipse(x,y,50,50);
        }
    }
    for(let y=50;y<=500;y+=100){
        for(let x=50;x<=500;x+=100){
            fill(random(360),100,100);
            d=random(110);
            ellipse(x,y,d,d);
        }
    }
}
console 命令行工具 X clear

                    
>
console