In instances where you need to draw a semi-circle, or a custom arc, you can use the same method. An arc is simply a section of the circumference of a circle. So, we can define this arc by a starting point (x, y), radius, and starting and ending points on the perimeter of the circle. Finally, we pass an optional parameter in the arc() method to indicate the path between the endpoints. The default value for this parameter is false, which is the equivalent to “clockwise”.
Syntax
Example
We can use some of the other properties and methods to modify other properties of this shape. We can also adjust the parameters of the arc() method to make a semi-circle. Also, you should note that the closePath() method is included so that the semi-circle becomes a closed shape.