console
function setup() {
createCanvas(3200,3200);
background(200);
rectMode(CENTER);
}
function draw() {
penguin(200,300,0,1);
penguin(300,350,25,0.9,10);
penguin(400,400,50,0.8,20);
penguin(500,450,75,0.7,30);
penguin(600,500,100,0.6,40);
penguin(700,550,125,0.5,50);
penguin(800,600,150,0.4,60);
penguin(900,650,175,0.3,70);
penguin(950,675,200,0.2,80);
penguin(1000,700,225,0.1,90);
}
function penguin(x,y,c,s,g){
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,30,g);
ellipse(70,-80,15,g);
noStroke();
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>