+ 1

Why there Is a line?

Why there is a diagonal line? https://code.sololearn.com/WrZrpK46aNVJ/?ref=app

27th Feb 2022, 6:54 PM
ProMarioYeah4765
ProMarioYeah4765 - avatar
3 Answers
+ 1
FF9900 thanks
27th Feb 2022, 7:20 PM
ProMarioYeah4765
ProMarioYeah4765 - avatar
0
I just moved context to cordinates you used for arc. And also set 2*Math.PI() to make full circle, you used 1.5. As i figure out line is because arc start on diferent cordinate then you end with your moveTo() so it add line https://www.w3schools.com/tags/canvas_arc.asp https://code.sololearn.com/W9BFRUOIh8SK/?ref=app
27th Feb 2022, 7:32 PM
PanicS
PanicS - avatar