What are start angle and end angle of arc in HTML5 canvas?

HTMLWeb DevelopmentFront End Technology

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.
raja
Published on 21-Mar-2018 08:09:05
Advertisements