rough-stuff / rough

Create graphics with a hand-drawn, sketchy, appearance
http://roughjs.com
MIT License
19.83k stars 613 forks source link

zigzag fill style does not work properly on concave paths #133

Closed ygra closed 4 years ago

ygra commented 4 years ago

image

Drawn with polygon, but I guess path would do the same.

pshihn commented 4 years ago

Sadly, yes. It's a new algorithm that fails the zig-zag format. I will make it fall back to the old implementation till I tweak the algo for zig-zag

pshihn commented 4 years ago

btw, path will NOT do the same. It currently fills using traditional fill patterns

pshihn commented 4 years ago

I did a major upgrade fro SVG paths, sadly I could not find a good solution for this fix yet. It's the next major item to resolve

pshihn commented 4 years ago

Fix in 4.2.1