SOURCE

console 命令行工具 X clear

                    
>
console
function setup() { 
    createCanvas(1000,600); 
    background(200); 
    rectMode(CENTER);
}
function draw() { 
    Penguin(100,150,0.3,180,100,150,15);
    Penguin(600,80,0.3,100,50,10,50);
     Penguin(200,350,0.4,0,10,150,40);
     Penguin(400,350,0.35,20,60,60,30);
     Penguin(50,445,0.4,355,70,100,75);
     Penguin(600,250,0.45,16,25,100,45);
     Penguin(225,100,0.3,105,80,20,20);
     Penguin(700,400,0.6,30,50,15,80,20);
     Penguin(850,100,0.6,70,90,150,30);
     Penguin(400,150,0.48,5,0,20,50);
}

function Penguin(x,y,s,c,b,d,a){
    push();
    translate(x,y); 
    scale(s);
    //两条腿 
    noStroke(); 
    fill(255,160,45);
    ellipse(-100,225,100,50); 
    ellipse(100,225,100,50);
    //身子形态和颜色
    fill(c,b,d); 
    ellipse(-150,90,60,235); 
    ellipse(150,90,60,235); 
    rect(0,100,300,250); 
    stroke(c,b,d); 
    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,a,a);                
    ellipse(70,-80,a,a);
    //嘴巴
    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>