This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.
This was was cloned from bug 17784 as part of operation convergence. Originally filed: 2012-07-15 16:09:00 +0000 Original reporter: Mike Kamermans <pomax@nihongoresources.com> ================================================================================ #0 Mike Kamermans 2012-07-15 16:09:40 +0000 -------------------------------------------------------------------------------- I'd like to request that the canvas 2d context fill style is extended with support for the even/odd winding algorithm, in addition to the non-zero winding algorithm, so that drawing shapes on the canvas that are based on paths obtained from graphics sources that encode shapes using the even/odd winding algorithm can be drawn without having to manually analyse the path for subpaths that need their direction flipped. Use cases are using image from .svg resource with the intention of using them as rasterised image data (not vector graphics) and shapes such as font outlines (for use as polygon graphics, not "letters") to the canvas. (As a bonus, this algorithm is already available for reuse in every current browser, since SVG requires algorithms both to be available, making implementing it for canvas 2d mostly a matter of hooking it up correctly) ================================================================================
I'll deal with this proposal when I handle this e-mail: http://lists.w3.org/Archives/Public/public-whatwg-archive/2011Jun/0123.html http://www.whatwg.org/issues/#New-features--canvas-fill-rule