一张图告诉你 canvas 中的 miterLimit 代表着什么
2024-10-12 12:24:03
一图胜千言, 图中有一条路径path, 沿着路径描了一条宽度为 width 的边, miterLimit 代表的是, 比例 ab/ac, 其中ac的长度为 1/2 width
来看 mdn 上的描述, 进行验证
miterLimit
= maxmiterLength
/lineWidth
= 1 / sin ( min θ / 2 )- The default miter limit of 10.0 will strip all miters for sharp angles below about 11 degrees.
- A miter limit equal to √2 ≈ 1.4142136 (rounded up) will strip miters for all acute angles, keeping miter joins only for obtuse or right angles.
- A miter limit equal to 1.0 is valid but will disable all miters.
- Values below 1.0 are invalid for the miter limit.
最新文章
- Chrome firefox ie等浏览器空格&;nbsp;宽度不一样怎么办
- Linux C popen()函数详解
- 我的防Q+
- Java classpath 如何自动添加web-content /lib下的jar包
- MySQL中引号的问题
- cron语法
- Azkaban遇到的坑-installation Failed.Error chunking
- 【Valid Parentheses】cpp
- 中断(interrupt)、异常(exception)、陷入(trap)
- Linux技巧总结(个人经验版)
- SVN上传代码时代码失败
- Nodejs随笔(二):像可执行shell脚本一样,运行node 脚本!
- ConnectivityManager
- POJ 1678 I Love this Game!#dp博弈
- Javascript 进阶 面向对象编程 继承的一个例子
- 【源码分析】Mybatis使用中,同一个事物里,select查询不出之前insert的数据
- luarocks 自定义包发布试用
- spring mvc 请求参数日期格式化 代码
- @JsonView 简单介绍[z]
- Linux下搭建Hadoop集群(Centos7.0)