Skip to content

Commit

Permalink
Added check for repeat controls in linedraw
Browse files Browse the repository at this point in the history
  • Loading branch information
evildmp committed Dec 26, 2019
1 parent ff81c4f commit 2e74954
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions linedraw.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,15 +116,15 @@ def vectorise(

lines = []

if draw_contours:
if draw_contours and repeat_contours:
contours = sortlines(getcontours(
image.resize((int(resolution/draw_contours), int(resolution/draw_contours*h/w))),
draw_contours
))
for r in range(repeat_contours):
lines += contours

if draw_hatch:
if draw_hatch and repeat_hatch:
hatches = sortlines(
hatch(
# image,
Expand Down

0 comments on commit 2e74954

Please sign in to comment.