RazrFalcon / tiny-skia

A tiny Skia subset ported to Rust
BSD 3-Clause "New" or "Revised" License
1.05k stars 67 forks source link

Feature request: `miter-clip` join style #82

Closed torokati44 closed 1 year ago

torokati44 commented 1 year ago

Hi! I'm considering using this really neat project in Ruffle for drawing strokes: https://github.com/ruffle-rs/ruffle/pull/11062.

However, Flash really means "miter-clip" by the "miter" join style, so it's not a perfect match.

See: https://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/display/GraphicsStroke.html#miterLimit https://svgwg.org/specs/strokes/#StrokeMiterlimitProperty

Do you think it would be reasonable to add this type of join style?

RazrFalcon commented 1 year ago

Sure, but only if you implement it yourself.