SOURCE

let speed=5;
let d=25;
let x;
let y;
function setup(){
createCanvas(500,500);
x=width/2;
y=height/2;
background(255);
fill(120,120,255)
}
function draw(){
x+=random(-speed,speed);
y+=random(-speed,speed);
triangle(x-45,y-45,x,y,x+150,y-120)
}
console 命令行工具 X clear

                    
>
console