SOURCE

let a=0;
let b=0;
let c=0;
function setup(){
    createCanvas(800,800);
    background(255);
}
function draw(){
    background(225,10);
    a+=0.01;
    noFill();
    push();
    translate(250,250);
    triangle(100,100);
    rotate(a);
    translate(-50,-100);
    triangle(0,0,200,250,120,245);
    b+=0.8;
    pop();
    push();
    stroke(0,100);
    translate(250,250);
    scale(random(10));
    rotate(b)
    triangle(30,30,160,160,50,140)
    pop();
    c+=0.02
    noFill();
    push();
    stroke(0);
    rotate(c)
    translate(200,200);
    triangle(30,30,150,80,55.95);

}
console 命令行工具 X clear

                    
>
console