SOURCE

console 命令行工具 X clear

                    
>
console
let a=0
let b=0
let c=0
function setup(){
    createCanvas(500,500);
    noStroke();
    colorMode(HSB,360,100,100);
    frameRate(60);
    background(20);
}
function draw(){
    a+=0.1;
    push();
    translate(mouseX,mouseY);
    scale(map(mouseX,0,500,0,1));
    fill(random(360),70,100,1)
    ellipse(20,20,50,50);
    pop();
    b+=0.3;
    push();
    noStroke();
    translate(mouseX,mouseY);
    scale(map(mouseX,0,300,0,3));
    fill(random(360),50,100,1)
    ellipse(30,50,60,60);
    pop();
    c+=0.2;
    push();
    noStroke();
    translate(mouseX,mouseY);
    scale(map(mouseX,0,200,0,2));
    fill(random(360),30,100,1)
    ellipse(60,80,30,30);
    pop();
}
<script src="https://cdnjs.cloudflare.com/ajax/libs/p5.js/1.1.9/p5.min.js"></script>