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