<canvas width="600" height="400"></canvas>
<script>
var mine = document.querySelector('canvas');
var craft =mine.getContext('2d');
craft.fillStyle = 'darkgreen';
craft.fillRect (220,80,320,300);
craft.fillStyle = 'black';
craft.fillRect (250,110,90,90);
craft.fillRect (410,110,90,90);
craft.fillRect(340,200,70,100);
craft.fillRect (300,240,40,110);
craft.fillRect (410,240,40,110);
</script>