<meta charset="UTF-8">
<canvas width = "600" height= "400"> </canvas>
<script>
var pantalla = document.querySelector("canvas");
var pincel = pantalla.getContext("2d");
pincel.fillStyle = "darkgreen";
pincel.fillRect (120,45,350,300);
pincel.fillStyle = "black";
pincel.fillRect (180,60,80,80);
pincel.fillStyle = "black";
pincel.fillRect (320,60,80,80);
pincel.fillStyle = "black";
pincel.fillRect (254,152,70,100);
pincel.fillStyle = "black";
pincel.fillRect (225,202,40,110);
pincel.fillStyle = "black";
pincel.fillRect (314,202,40,110);
</script>