<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>CANVAS</title>
</head>
<body>
<canvas width = "600" height = "400"></canvas>
<script>
var pantalla = document.querySelector("canvas");
var pincel = pantalla.getContext("2d");
pincel.fillStyle = "darkgreen";
pincel.fillRect(150,100,350,300);
pincel.fillStyle = "black";
pincel.fillRect(200,150,90,90);
pincel.fillRect(360,150,90,90);
pincel.fillRect(290,240, 70,100);
pincel.fillRect(250,290,40,110);
pincel.fillRect(360,290,40,110);
</script>
</body>
</html>