SOURCE

function setup() {
    createCanvas(300, 300);
    background(300);
    strokeWeight()
}

function draw() {
    for (let y = 25; y < 300; y += 50) {
        for (let x = 25; x < 300; x += 50) {
            fill(90, 0, 200);
            ellipse(x, y, 50, 50);
        }
    }
    for (let y = 25; y < 350; y += 50) {
        for (let x = 25; x < 350; x += 50) {
            fill(0,200,150);
            arc(x, y, 40, 40,4.5,6);
        }
    }
}
console 命令行工具 X clear

                    
>
console