HTML5画图方法入门
常用HTML5画图方法:
fillRect()
:绘制填充矩形clearRect()
:清除画布指定区域strokeRect()
:绘制矩形边框beginPath()
:开始绘制路径moveTo()
:移动画笔到指定点lineTo()
:从当前点绘制一条线到指定点closePath()
:关闭当前路径fill()
:填充当前路径stroke()
:描边当前路径
1.39MB
文件大小:
评论区