SOURCE

let speed= 4
let a
let x;
let y
function setup(){
    createCanvas(480,480);
    x=width/2;
    y=height/2;
    background(255);
}
function draw(){
   x +=random(-speed,speed);
   y +=random(-speed,speed);
   
}
console 命令行工具 X clear

                    
>
console