Arcs
Learn how angles work in an arc and how arcs are connected with lines and curves.
We took a quick look at arcs in one of the previous chapters. This time, we will look more closely at how angles are interpreted and how arcs connect to other lines and curves.
Arc angle rules
The arc function looks like this:
ctx.arc(x, y, r, a1, a2)
It draws an arc of a circle, with center (x, y
), and radius r
. The arc starts at angle a1
and ends at angle a2
. Here is an example:
Get hands-on with 1300+ tech skills courses.