a-e-k / canvas_ity

A tiny, single-header <canvas>-like 2D rasterizer for C++
ISC License
342 stars 25 forks source link

Feature request : fillRule #1

Open sammycage opened 1 year ago

sammycage commented 1 year ago

Do you have any plans to support fillRule https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/fill

a-e-k commented 1 year ago

Hi. For the initial release, I had wanted to stick to just what was in the old W3C spec to avoid feature creep to keep this small. But now that it's out, there's some low-hanging fruit from the more comprehensive WHATWG spec that I think that I could add to the next release without adding too much bloat:

kariem2k commented 1 year ago

Wanted to try to run rive over canvas_ity I think the alternate fill rules will help with that.

Thank you very much