Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for evenodd fill rule #384

Closed
mitar opened this issue Feb 11, 2014 · 3 comments
Closed

Support for evenodd fill rule #384

mitar opened this issue Feb 11, 2014 · 3 comments
Labels

Comments

@mitar
Copy link
Contributor

mitar commented Feb 11, 2014

Support evenodd fill rule.

Example:

var canvas = document.createElement('canvas');
var ctx = canvas.getContext('2d');
ctx.rect(1, 1, 50, 50);
ctx.rect(5, 5, 41, 41);
ctx.fill('evenodd');

The "evenodd" value indicates the even-odd rule, wherein a point is considered to be outside a shape if the number of times a half-infinite straight line drawn from that point crosses the shape's path is even.

@ghost
Copy link

ghost commented Apr 21, 2015

any news?

@isieo
Copy link

isieo commented Jan 20, 2016

bump?

@zbjornson
Copy link
Collaborator

Fixed in #762/v1.4.0 🎉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants