<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Flor</title>
</head>
<body>
<canvas width="600" height="400"></canvas>
<script>
var pantalla = document.querySelector("canvas");
var pincel = pantalla.getContext("2d");
pincel.fillStyle = "lightgray";
pincel.fillRect(0, 0, 600, 400);
function dibujarCirculo(x, y, radio, color) {
pincel.fillStyle = color;
pincel.beginPath();
pincel.arc(x, y, radio, 0, 2 * 3.14);
pincel.fill();
}
for (var x = 0; x < 600; x = x + 50) {
dibujarCirculo(300, 200,15, 'red');
dibujarCirculo(300, 230,15, 'blue');
dibujarCirculo(330, 200,15, 'black');
dibujarCirculo(300, 170,15, 'yellow');
dibujarCirculo(270, 200,15, 'orange');
}
</script>
</body>
</html>