SOURCE

console 命令行工具 X clear

                    
>
console
function setup() {
    colorMode(HSB,280,360,200);
    createCanvas(1400,1400);
    background(100);
    rectMode(CENTER);
}
function draw() {
    Penguin(200,200,1,120,50);
    Penguin(900,400,0.2,20,55);
    Penguin(600,1000,0.7,180,20);
    Penguin(400,700,0.9,60,30);
    Penguin(1000,900,0.59,290,69);
    Penguin(600,300,0.5,150,36);
    Penguin(700,100,0.25,360,50);
    Penguin(200,600,0.3,8,63);
    Penguin(1400,900,0.4,330,86);
    Penguin(300,1000,0.1,90,99);
}

function Penguin(x,y,s,c,d){
    push();
    translate(x,y);
    scale(s);
    //两条腿
    noStroke();
    fill(255,160,45);
    ellipse(-100,225,100,50);
    ellipse(100,225,100,50);
    //身子形态和颜色
    fill(c,100,360);
    ellipse(-150,90,60,235);
    ellipse(150,90,60,235);
    rect(0,100,300,250);
    stroke(c,100,360);
    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,d,d);               
    ellipse(70,-80,d,d);
    //嘴巴
    noStroke();
    fill(255,160,45);
    triangle(-15,-50,15,-50,0,-25);
    pop();
}
<script src='https://cdn.jsdelivr.net/npm/p5@1.1.9/lib/p5.min.js'></script>