arc方法用来绘制一段圆弧或者圆

  • ctx.arc(x, y, r, startAngle, endAngle)
  • startAngle:起始角度,默认x轴是0度
  • 绘制圆弧。