const canvas = document.getElementById("canvas_one") let ctx = canvas.getContext("2d") ctx.arc(150, 75, 40, 0, 2 * Math.PI); ctx.strokeStyle = "red"; ctx.fillStyle = "lightgreen"; ctx.lineWidth = 10; ctx.stroke(); ctx.fill();
<canvas id="canvas_one"></canvas>
canvas { background-color: lightgoldenrodyellow; }
getContext('2d')
arc(x, y, radius, startAngle, endAngle)
strokeStyle="color"
fillStyle="color"
linewidth="value"
stroke()
fill()