console
function setup() {
colorMode(HSB,360,160,100);
createCanvas(1200,1200);
background(0);
rectMode(CENTER);
}
function draw() {
Penguin(300,360,0.5,2,90);
Penguin(200,200,0.2,10,60);
Penguin(40,700,0.6,1,90);
Penguin(600,600,0.7,220,30);
Penguin(400,700,0.59,330,18);
Penguin(700,300,0.5,160,36);
Penguin(700,300,0.2,360,50);
Penguin(200,600,0.3,270,63);
Penguin(1000,400,0.4,330,86);
Penguin(900,300,0.1,60,10);
}
function Penguin(x,y,s,c,a){
push();
translate(x,y);
scale(s);
noStroke();
fill(255,100,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,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>