在canvas元素中使用SVG evenodd填充规则 [英] Using the SVG evenodd fill-rule in the canvas element

查看:313
本文介绍了在canvas元素中使用SVG evenodd填充规则的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有人知道是否可能,在本机或数学用javascript,实现HTML5的canvas元素中的SVG的evenodd填充规则?



谢谢!

解决方案

p>我问自己同样的问题,遇到了这个Mozilla Bugreport 。 p>

似乎它被错误修改者提交给WHATWG(画布规格):


Chris Jones,2011-06-10:



让我们等待文档,直到这个规范在whatwg看起来稳固(我今天发布)。



Does anyone know if it's possible, either natively or mathematically with javascript, to implement the evenodd fill-rule from SVG in the HTML5 canvas element? Links to projects that do this would be helpful.

Thanks!

解决方案

I asked myself the same question and came across this Mozilla Bugreport.

Seems as it gets proposed to the WHATWG (canvas specs) by the bugreporters:

Chris Jones, 2011-06-10:

Let's wait for docs until this spec is looking solid on whatwg (I'll post today).

这篇关于在canvas元素中使用SVG evenodd填充规则的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆