0

why the line was drawn? // почему нарисовалась линия?

//БАТЯ ДОЛЖЕН 22000 РУБЛЕЙ НЕ ЗАБЫТЬ! <html><body><canvas id="kk" width="1000" height="1000"></canvas> </body><head><script>var cute = document.getElementById("kk"); var move = cute.getContext("2d"); move.arc(100, 100, 75, 0, Math.PI * 2, false); move.stroke(); move.arc(300, 100, 75, 0, Math.PI * 2, false); move.stroke(); </script></head></html>

13th Aug 2018, 7:41 PM
MakarovDs
1 ответ
+ 3
The line is drawn because it had to move to the second circle to draw it, add: move.moveTo(375, 100); before the second arc statement to move without a line.
13th Aug 2018, 8:25 PM
John Wells
John Wells - avatar