<canvas width="600" height="400"></canvas>
<script>
var tela= document.querySelector("canvas");
var pincel= tela.getContext("2d");
//cabeça
pincel.fillStyle= "darkgreen";
pincel.fillRect(0, 0, 350, 300);
//olhos
pincel.fillStyle= "black";
pincel.fillRect(51, 50, 90, 90);
pincel.fillRect(211, 50, 90, 90);
//nariz
pincel.fillStyle= "black";
pincel.fillRect(141, 140, 70, 100);
//boca
pincel.fillStyle= "black";
pincel.fillRect(101, 175, 40, 110);
pincel.fillRect(211, 175, 40, 110);
</script>