+ 2

I don't understand what the function of the start and stop parameters when programing a drawing for a circle on a canvas

It has ctx. Begin path() ; Ctx. Arc(x, y, r, start, stop) ; Ctx. Stroke() ; Why does it need start and stop when it already has the parameter for the radius Please Any answer would be very very helpful

20th Jul 2016, 12:51 AM
Ozii
Ozii - avatar
1 ответ
+ 1
It's for the start and end angles. 0 is at 3 o'clock. It's useful to know in the case you want to draw 3/4s of a circle for instance.
20th Jul 2016, 2:05 AM
ZinC
ZinC - avatar