0
메신저 함께 내부캔버스
하지만 브라우저가 왜 두 번째 원 내부에 별도의 선을 그릴 2 원을 그리려고? arc
방법은 자동으로 현재의 X 및 Y 위치와 여기 100, 100
(그리는 원호의 시작 사이의 lineTo
그릴 때문이다
var canvas = document.getElementById('convas');
var ctx = canvas.getContext('2d');
ctx.strokeStyle = "orange";
ctx.lineWidth = 25;
ctx.arc(160, 160, 100, 0, Math.PI * 2, false);
ctx.stroke();
ctx.moveTo(100, 100);
ctx.arc(150, 150, 40, 0, Math.PI * 2, false);
ctx.lineWidth = 20;
ctx.stroke();
<div class="center">
<canvas id="convas" style="background: grey" width="300" height="300">
here will go report chart if you see this text it mean your browser dont support canvas!
so update your browser.
</canvas>
</div>
깨끗한 대답 감사합니다 – moh