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


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.

Updated on: 24-Jun-2020

231 Views

Kickstart Your Career

Get certified by completing the course

Get Started
Advertisements