<canvas width="600" height="400" ></canvas>
<script>
var pantalla=document.querySelector("canvas");
var figure=pantalla.getContext("2d");
//cabeza
figure.fillStyle = 'white';
figure.beginPath();
figure.moveTo(110, 50);
figure.lineTo(110,400);
figure.lineTo(460,400);
figure.fill();
figure.fillStyle = 'blue';
figure.beginPath();
figure.moveTo(160, 175);
figure.lineTo(160,350);
figure.lineTo(335,350);
figure.fill();
</script>