SOURCE

let d=[]
let c=[];

function setup(){
    createCanvas(580,580);
    background(200);
    for(let i=0;i<72;i++){
        c[i]=random(255);
    }
}
function draw(){
    for(let i=0;i<24;i++){
    let index=i*3;
    fill(c[index],c[index+1],c[index+2]);
    rect(i*120,10,20,height);
    }
}
console 命令行工具 X clear

                    
>
console