<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>ESCUADRA</title>
</head>
<body>
<canvas width="600" height="400"></canvas>
<script>
var lienzo = document.querySelector('canvas');
var pincel = lienzo.getContext('2d');
pincel.fillStyle = 'lightgrey';
pincel.fillRect(0,0,600,400);
function circulo(color,x,y){
pincel.fillStyle = color;
pincel.beginPath();
pincel.arc(x,y,50,0,2*3.1416);
pincel.fill();
}
circulo('red',300,200);
circulo('yellow',300,100);
circulo('blue',300,300);
circulo('orange',200,200);
circulo('black',400,200);
</script>
</body>
</html>