stroke和closePath
2016-07-08 09:37
218 查看
先stroke后closePath就不会有连接
cav_round1.beginPath();
cav_round1.moveTo(0, -round1_R[0]);
cav_round1.lineTo(0, -round1_R[1]);
cav_round1.arc(0, 0, round1_R[1], -90*Math.PI/180, -30*Math.PI/180);
cav_round1.stroke();
cav_round1.closePath();
cav_round1.beginPath();
cav_round1.moveTo(0, -round1_R[0]);
cav_round1.lineTo(0, -round1_R[1]);
cav_round1.arc(0, 0, round1_R[1], -90*Math.PI/180, -30*Math.PI/180);
cav_round1.stroke();
cav_round1.closePath();
相关文章推荐
- 洛谷 P2024 食物链
- Linux中yum和apt-get用法及区别
- web前端知识体系大全
- 关于apue第二章获取绝对路径长度程序path_alloc()分析
- BP神经网络
- NYOJ_重建二叉树
- java实现人民币数字转换中文大写的工具实例代码demo分享
- 关于path_alloc()函数
- Merge k Sorted Lists
- PlSql链接不上Oracle问题跟踪
- 内存管理 & 内存优化技巧 浅析
- [Python]更加Pythonic的多个List合并和Python的安利
- C# 实现是否设置指定程序为开机启动程序
- hbase hive
- 快速掌握Java语言
- nfs,ftp,telnet区别
- IE9 IE8 ajax跨域问题的快速解决方法
- stl string常用函数
- 关于Kendo ui 的简单介绍
- Java NIO原理图文分析及代码实现