SOURCE

console 命令行工具 X clear

                    
>
console
function setup(){
createCanvas(600,600);
background(200)
rectMode(CENTER);
}
function draw(){
fill(255,238,183);
triangle(220,220,230,280,260,241);
triangle(380,220,370,280,340,241);
fill(246,183,142);
triangle(230,235,235,280,255,246);
triangle(370,235,360,280,345,246);
fill(255,238,183);
ellipse(300,300,150,135);
arc(295,320,15,16,6,9.5);
arc(310,320,15,16,6,9.5);
fill(246,183,142);
arc(233,296,15,18,6.5,9.9);
arc(237,320,15,18,6.5,9.5);
arc(367,296,15,18,5.9,9.4);
arc(364,320,15,18,6,9.2);
fill(18,18,18);
ellipse(273,285,18,15);
ellipse(328,285,18,15);
fill(250,250,250);
ellipse(270,282,7,5.5);
ellipse(325,282,7,5.5);
}
<script src="https://cdnjs.cloudflare.com/ajax/libs/p5.js/1.1.9/p5.min.js"></script>