绘制圆形的基本函数
context.arc(
centerX,centerY,radius,
startingAngle,endingAngle,
anticlockwise=false//绘制方向,true 为逆时针
)
centerX,centerY:圆心的坐标值
radius:圆的半径
staringAngle,endingAngle:启始弧度值,终止弧度制
例如
context.arc(300,300,200,0,1.5*Math.PI)
使用context.colsePath()会使圆弧路径封闭