📌  相关文章
📜  javascript 用颜色填充圆圈 - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:02:39.884000             🧑  作者: Mango

代码示例2
context.beginPath();
      context.arc(centerX, centerY, radius, 0, 2 * Math.PI, false);
      context.fillStyle = 'green';
      context.fill();
      context.lineWidth = 5;
      context.strokeStyle = '#003300';
      context.stroke()