console
function setup() {
createCanvas(1200,600);
background(200);
rectMode(CENTER);
}
function draw() {
Penguin(600,100,0.8,120);
Penguin(60,300,0.1,0);
Penguin(500,100,0.3,0);
Penguin(400,200,0.2,0);
Penguin(140,200,0.35,0);
Penguin(290,400,0.33,0);
Penguin(440,450,0.34,0);
Penguin(200,450,0.15,0);
Penguin(40,450,0.159,0);
Penguin(100,450,0.266,0);
}
function Penguin(x,y,s,c){
push();
translate(x,y);
scale(s);
noStroke();
fill(255,160,45);
ellipse(-100,225,100,50);
ellipse(100,225,100,50);
fill(300,330,0);
ellipse(-150,90,120,235);
ellipse(900,90,60,600);
rect(0,100,300,250);
stroke(c);
strokeWeight(300);
line(50, -85, 0, 30);
fill(185,300,100);
noStroke();
ellipse(-70,-80,120,120);
ellipse(70,-80,120,120);
ellipse(0,95,200,220);
fill(255,320,255);
ellipse(-70,-80,50,50);
ellipse(70,-80,15,15);
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>