<meta charset="UTF-8">
<canvas width="350" height="300"> </canvas>
<script>
var pantalla = document.querySelector("canvas");
var pincel = pantalla.getContext("2d");
pincel.fillStyle = "green"
pincel.fillRect(0,0,600,400);
pincel.fillStyle = "black"
pincel.fillRect(45,50,90,90)
pincel.fillStyle = "black"
pincel.fillRect(200,50,90,90)
pincel.fillStyle = "black"
pincel.fillRect(130,125,70,100)
pincel.fillStyle = "black"
pincel.fillRect(90,170,40,110)
pincel.fillStyle = "black"
pincel.fillRect(200,170,40,110)
</script>