<canvas width="600" height="400">
</canvas>
<script>
var pantalla = document.querySelector("canvas");
var pincel = pantalla.getContext("2d");
//dofon
pincel.fillStyle = ("white")
pincel.fillRect(0,0,600,400);
//cabeza
pincel.fillStyle = ("darkgreen");
pincel.fillRect (100,50,350,300);
//ojo izq
pincel.fillStyle = ("black");
pincel.fillRect (150,100,90,90);
//ojo der
pincel.fillStyle = ("black");
pincel.fillRect (310,100,90,90);
//napio
pincel.fillStyle = ("black");
pincel.fillRect (240,190,70,100);
//barba
pincel.fillStyle = ("black");
pincel.fillRect (200,240,40,110);
//barba
pincel.fillStyle = ("black");
pincel.fillRect (310,240,40,110);
</script>