The arc() function has the following definition that shows the usage of start and ends angle −
arc(x, y, radius, startAngle, endAngle, anticlockwise)
This method has the following parameters −
- x and y are coordinates of the circle’s center.
- Radius is the circle radius
- StartAngle and EndAngle define the start and endpoints of the arc in radians. Starting and closing angles are measured from the horizontal i.e. x-axis
- Anticlockwise is the Boolean value which when true draws arc anticlockwise otherwise in a clockwise direction.