canvas api总结

1.beginPath()

2.closePath()

3.moveTo(x,y)

将鼠标移动到这个坐标

4.lineTo(x,y)

经鼠标从当前位置到连接到一个指定的点

5.stroke()

将线绘制到画布上

6.save()

保存当前绘图状态

7.restore()

恢复到原有的绘画状态

8.translate(x,y)

平移

 

posted @ 2016-08-24 11:55  浅书流年  阅读(111)  评论(0编辑  收藏  举报