SOURCE

console 命令行工具 X clear

                    
>
console
function setup() { 
    createCanvas(1200,600); 
    background(200); 
    rectMode(CENTER);
}
function draw() { 
    Penguin(300,300,0.5,120);
    Penguin(600,300,0.3,0);
    Penguin(900,300,0.8,220);
}
function Penguin(x,y,s,c){
    push();
    translate(x,y);
    scale(s);
    //两条腿 
    noStroke(); 
    fill(255,160,45);
    ellipse(-100,225,100,50); 
    ellipse(100,225,100,50);
    //身子
    fill(c); 
    ellipse(-150,90,60,235); 
    ellipse(150,90,60,235); 
    rect(0,100,300,250); 
    stroke(c); 
    strokeWeight(300); 
    line(0, -85, 0, 30);
    //眼睛和肚皮
    fill(255);
    noStroke(); 
    ellipse(-70,-80,120,120); 
    ellipse(70,-80,120,120); 
    ellipse(0,95,200,220);
    //眼球
    fill(0); 
    ellipse(-70,-80,15,15);
    ellipse(70,-80,15,15);
    //嘴巴
    noStroke();
    fill(255,160,45); 
    triangle(-15,-50,15,-50,0,-25);
    pop();
}
<script src="https://cdnjs.cloudflare.com/ajax/libs/p5.js/1.1.9/p5.min.js"></script>