codigo
<canvas width="800" height="700"></canvas>
<script type="text/javascript">
var pantalla = document.querySelector("canvas")
var pincel = pantalla.getContext("2d")
pincel.fillStyle = "darkgreen"
pincel.fillRect(0,0,800,700)
pincel.fillStyle = "black"
pincel.fillRect(100,100,200,200)
pincel.fillStyle = "black"
pincel.fillRect(500,100,200,200)
pincel.fillStyle = "black"
pincel.fillRect(300,300,200,250)
pincel.fillStyle = "black"
pincel.fillRect(179,400,125,700)
pincel.fillStyle = "black"
pincel.fillRect(500,400,125,700)
</script>