artisan.js如何画三角形

来源:-

骑单车的蚂蚁

2015-03-16 10:23

1 artisan.drawLine('canvas',200,200,300,300,1,'red');

  artisan.drawLine('canvas',300,300,250,280,1,'red');

  artisan.drawLine('canvas',250,280,200,200,1,'red');

2

artisan.drawLine('canvas',200,200,300,300,1,'red');

artisan.drawLine('canvas',300,300,250,280,1,'red');

//artisan.drawLine('canvas',250,280,200,200,1,'red');

artisan.closePath('canvas');

为何第二种方法不行呢?

写回答 关注

0回答

还没有人回答问题,可以看看其他问题

Canvas绘图详解

Canvas系列教程第二课,详解Canvas各接口,让同学彻底掌握Canvas绘图

72881 学习 · 422 问题

查看课程

相似问题