canvas_ity icon indicating copy to clipboard operation
canvas_ity copied to clipboard

Feature request : fillRule

Open sammycage opened this issue 2 years ago • 2 comments

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

sammycage avatar Oct 10 '22 17:10 sammycage

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:

  • Alternate fill rules
  • Conic gradients
  • Elliptical arcs
  • Round rectangles
  • Text kerning

a-e-k avatar Oct 11 '22 01:10 a-e-k

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

Thank you very much

kariem2k avatar Oct 17 '22 21:10 kariem2k