<html lang="es">
<head>
<meta charset="UTF-8">
<title>Ejercicio CanvasS</title>
</head>
<body>
<canvas width="600" height="400"></canvas>
<script type="text/javascript">
var pantalla= document.querySelector("canvas");
var pincel= pantalla.getContext("2d");
// pincel.fillRect(0,0,600,400);
pincel.fillStyle ="darkgreen";
pincel.fillRect(125,100,350,300);
pincel.fillStyle ="black";
pincel.fillRect(175,160,90,90);
pincel.fillRect(335,160,90,90);
pincel.fillRect(265,250,70,100);
pincel.fillRect(225,290,40,110);
pincel.fillRect(335,290,40,110);
</script>
</body>
</html>