<canvas width="600" height="400"> </canvas>
<script>
var pantalla = document.querySelector("canvas");
var pincel = pantalla.getContext("2d");
pincel.fillStyle = "lightgrey";
pincel.fillRect(0,0,600,400);
function circulo(x, y, radio, color) {
pincel.fillStyle = color;
pincel.beginPath();
pincel.arc(x,y,radio,0,2*3.14);
pincel.fill();
}
function flor(x,y) {
circulo(x,y,20,"red");
circulo(x-40,y,20,"orange");
circulo(x+40,y,20,"black");
circulo(x,y-40,20,"yellow");
circulo(x,y+40,20,"blue");
}
flor(300,200);
</script>