hachure fill is missing sometimes
Closed this issue · 0 comments
fskpf commented
When randomize is enabled, the hachure fill is missing sometimes.
For example, test this fiddle: https://jsfiddle.net/d7xjk5qb/ (run it multiple times) which reproduces it directly with Roughjs. Note the hachureGap
value. Changing it to integer or .5
values makes it work.
According to Roughjs hachureGap
is a numerical value that describes the average distance in pixels and the hachure-fill implementation assumes integer values ((iteration % gap === 0)
).
There, svg2roughjs should make sure to use random integer values here.