image.png
canvas的api
rect( x, y, width, height ) 绘制矩形
fillRect( x, y, width, height ) 绘制被填充的矩形...strokeRect( x, y, width, height ) 绘制矩形(无填充)
clearRect( x, y, width, height ) 清除指定的矩形内的像素
fill(...y2, radius) 根据给定点画圆弧,再以直线连接两个点
isPointInPath( x, y ) 检测指定的点是否在当前路径中,在则返回true。...(butt、round、square)
lineJoin 设置或返回当两条线交汇时,边角的类型(bevel、round、miter)
lineWidth 设置或返回当前的线条宽度
miterLimit...alpha或透明度
globalCompositeOperation 设置或返回新图像如何绘制到已有的图像上。