SOURCE

function setup() {
    createCanvas(1200,300);
    background(200);
    rectMode(CENTER);
    colorMode(HSB,360,100,100,1);
    for(let i=0;i<width;i+=150){
       let penguinC=int(random(0,160));
       let penguinC1=random(random(360),255);
       let penguinC2=random(random(360),255);
       let penguinC3=random(random(360),255);
       let penguinS=random(0.23,0.6)
       penguin(i,150,penguinC,penguinC1,penguinC2,penguinC3,penguinS);
    }
}
function draw() {
}
function penguin(x,y,c,c1,c2,c3,s){
    push();
      translate(x,y);
      scale(s);

    noStroke();
    fill(c,c1,c2,c3);
    ellipse(-100,225,100,50);
    ellipse(100,225,100,50);
    //身子
    fill(c,c1,c2,c3);
    ellipse(-150,90,60,235);
    ellipse(150,90,60,235);
    rect(0,100,300,250);
    stroke(c,c1,c2,c3);
    strokeWeight(300);
    line(0, -85, 0, 30); 
    //眼睛和肚皮
    fill(c,c1);
    noStroke();
    ellipse(-70,-80,120,120);
    ellipse(70,-80,120,120);
    ellipse(0,95,200,220);
    //眼球
    fill(c3);
    ellipse(-70,-80,15,15);
    ellipse(70,-80,15,15);
    //嘴巴
    noStroke();
    fill(245,60,85);
    triangle(-15,-50,15,-50,0,-25);
 pop();
}
console 命令行工具 X clear

                    
>
console