I'm trying to draw an arc from two points (X, Y cords).
But I can't figure out how to do it so that I can specify the start angle and end angle
I got the center point(p2), radius = r. The start point(p1) and the end point(p3).
like shown below
And what I wanna do is use the arc to draw a round line like shown below
All I have found on this subject is only example where arc draw from 0 to something like 2*Math.PI.
ctx.arc(100,75,50,0,2*Math.PI);
Like this. A can't figure out a way that I can use the p1 and p3 instead of those numbers. Anyone that can explain how this work, and maybe give a shot on how I can solve this?