摘要:
现把canvas的知识点总结如下,以便随时查阅。1、填充矩形 fillRect(x,y,width,height);2、绘制矩形边框 strokeRect(x,y,width,height);3、擦除矩形 clearRect(x,y,width,height);4、填充样式 fillStyle="red"; 样式可以为颜色、渐变和图像。5、描边样式 strokeStyle="red";6、描边线条的宽度 lineWidth=4;7、线条末端形状 lineCap="butt"; butt(对接)/round(圆)/square(方),默 阅读全文
posted @ 2012-10-18 00:46
挨踢前端
阅读(1376)
评论(0)
推荐(0)