<canvas width="600" height="400"> </canvas>
<script>
var pantalla = document.querySelector("canvas");
var pincel = pantalla.getContext("2d");
pincel.fillStyle = "green";
pincel.fillRect(0,0,400,400);
pincel.fillStyle = "black";
pincel.fillRect(60,50,90, 100);
pincel.fillStyle = "black";
pincel.fillRect(250,50,90, 100);
pincel.fillStyle = "black";
pincel.fillRect(150,150,100, 130);
pincel.fillStyle = "black";
pincel.fillRect(80,200,70, 200);
pincel.fillStyle = "black";
pincel.fillRect(250,200,70, 200);
</script>