canvas-js贝塞尔曲线代码在线生成工具

 

详细内容请点击

 

canvas贝塞尔曲线代码在线生成工具

可以快速生成二次、三次贝塞尔曲线的源码生成器,方便经常使用到canvas画图的同学使用,可以直接预览效果随意画出自己想要的图像。

生成源码效果预览:

canvas = document.getElementById("canvas");
ctx = canvas.getContext("2d")
ctx.lineWidth = 6;
ctx.strokeStyle = "#0090D2";
ctx.beginPath();
ctx.moveTo(118, 264);
ctx.quadraticCurveTo(250, 100, 378, 264);
ctx.stroke();

 

来源:http://www.j--d.com/html/367.html

 

更多canvas内容请点击

 

posted on 2015-04-17 14:55  html5前端技术分享  阅读(6165)  评论(0编辑  收藏  举报