SOURCE

let tx=0;
let ty=0;
let tz=0;
let nx;
let ny;
let nz=5;
function setup(){
createCanvas(600,600);
noStroke();
nx = random(500);
ny = random(600);
}
function draw(){
    fill(random(255),170,60,100);

    nx=noise(tx);
    ny=noise(ty);
    nz=noise(tz);
    nx = map(nx,0,1,0,width);
    ny = map(ny,0,1,0,width);
    nz = map(nz,0,1,10,50);
    translate(mouseX,mouseY);
    rotate(nz);
    scale(map(mouseX,0,600,0,1));
    tx+=0.011;
    ty+=0.01;
    tz+=0.1;
    rect(constrain(nx,0,width),constrain(ny,0,height),nz,nz);
}
console 命令行工具 X clear

                    
>
console