SOURCE

let speed = 24;
let d = 300;
let x;
let y=4;
let c=20;
function setup(){
createCanvas(380,380);
x = width/4;
y = height/3;
colorMode(HSB,360,100,100,1);
}
function draw(){
    background(0);
c+= speed;
if(c>360){
    c=100;
}
noStroke();
fill(c,150,250,5);
x +=random(-speed,speed);
y +=random(-speed,speed);
x =constrain(x,0,width);
y =constrain(y,0,height);
ellipse(x,y,d,d)
}
console 命令行工具 X clear

                    
>
console