This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 17893 - request: even/odd winding algorithm in addition to non-zero
Summary: request: even/odd winding algorithm in addition to non-zero
Status: RESOLVED WONTFIX
Alias: None
Product: WHATWG
Classification: Unclassified
Component: HTML (show other bugs)
Version: unspecified
Hardware: Other other
: P3 normal
Target Milestone: Unsorted
Assignee: Ian 'Hixie' Hickson
QA Contact: contributor
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-07-18 07:13 UTC by contributor
Modified: 2012-09-28 19:37 UTC (History)
3 users (show)

See Also:


Attachments

Description contributor 2012-07-18 07:13:31 UTC
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)
================================================================================
Comment 1 Ian 'Hixie' Hickson 2012-09-28 19:37:31 UTC
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