We can create a circle using
the arc()
method. Take a look:
The method needs the following values:
- x-coordinate, for the center of the circle
- y-coordinate, for the center of the circle
- radius of the circle
- starting angle
- ending angle
Don't forget to add a fill()
or
stroke()
to make the circle
appear on the canvas.