,stroke是画边界用
ctx.beginPath();//绘制既有填充又有边框样式的圆形
ctx.lineWidth = 15;
ctx.strokeStyle...ctx.arc(260, 200, 50, 0, Math.PI, true);
ctx.fill(); //这里有fill,没有stroke,只是填充出来的图形,并没有边界...//绘制同心圆弧
ctx.lineWidth = 5;
ctx.strokeStyle = "red";
ctx.arc(530, 200, 50, 0,...", 100, 200);//fillText只填充颜色的文本
ctx.strokeText("利用canvas绘制文本", 100, 300);//既有边框又有填充颜色的文本...(img, direction);//调用createPattern,实现图像填充图形
ctx.rect(0, 0, 320, 180);//填充的大小,并不是整个画布