<canvas width="600" height="400"></canvas>
<script>
var pantalla = document.querySelector("canvas");
var pincel = pantalla.getContext("2d");
//Rectangulo1
pincel.fillStyle = "darkgreen";
pincel.fillRect(200,50,350,300);
//Rectangulo2 y 3
pincel.fillStyle = "black"
pincel.fillRect(250,100,90,90);
pincel.fillStyle = "black"
pincel.fillRect(410,100,90,90);
//Rectangulo4
pincel.fillStyle = "black"
pincel.fillRect(340,190,70,100);
//Rectangulo5 y 6
pincel.fillStyle = "black"
pincel.fillRect(410,240,40,110);
pincel.fillStyle = "black"
pincel.fillRect(300,240,40,110);
</script>