<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 (70,70,350,300);
pincel.fillStyle = "black";
pincel.beginPath();
pincel.fillRect(120,130,90,90);
pincel.fillStyle = "black";
pincel.beginPath();
pincel.fillRect(280,130,90,90);
pincel.fillStyle = "black";
pincel.beginPath();
pincel.fillRect(210,218,70,100);
pincel.fillStyle = "black";
pincel.beginPath();
pincel.fillRect(280,260,40,110);
pincel.fillStyle = "black";
pincel.beginPath();
pincel.fillRect(170,260,40,110);
</script>