<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>CANVAS</title>
</head>
<body>
<canvas width = "600" height = "400"></canvas>
<script>
var lienzo = document.querySelector("canvas");
var pincel = lienzo.getContext("2d");
pincel.fillStyle = "blue";
pincel.fillRect(10,25,95,100);
pincel.strokeRect(10,25,95,100)
pincel.fillStyle = "white";
pincel.fillRect(105,25,95,100);
pincel.strokeRect(105,25,95,100);
pincel.fillStyle = "red";
pincel.fillRect(200,25, 95,100);
pincel.strokeRect(200,25,95,100);
pincel.fillStyle = "black";
pincel.beginPath();
pincel.moveTo(153,75);
pincel.lineTo(105,125);
pincel.lineTo(200,125);
pincel.fill();
pincel.fillStyle = "yellow";
pincel.beginPath();
pincel.arc(153,75,20,0,2*3.14);
pincel.fill();
</script>
</body>
</html>