rough-stuff / rough

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

fails on 90 degree lines #105

Closed cpryland closed 4 years ago

cpryland commented 5 years ago

Rough appears to fail (does something degenerate) on simple line segments (whether actual lines, or simple line paths) with 90 degree orientation (where the start.x == end.x or start.y == end.y).

Is this something you've seen before?

pshihn commented 5 years ago

I recall seeing this before. Didn't realize it was still an issue. Will look into this. Thanks for reporting.

cpryland commented 5 years ago

Any ideas?

pshihn commented 4 years ago

Resolved in https://github.com/pshihn/rough/pull/121 which uses a new hachure algoritjm