hnnnnnnngh so close dawg

This commit is contained in:
XANTRONIX Development 2023-12-29 22:15:02 -05:00
parent 64c9ee3dc5
commit 1cde0822c9

View file

@ -36,14 +36,20 @@ class Path():
command, args = item
if command == 'M':
for arg in args:
cr.move_to(*arg)
elif command == 'm':
for arg in args:
if last == 'Z' or last == 'z':
cr.move_to(*arg)
for i in range(0, len(args)):
if i == 0:
cr.move_to(*args[i])
else:
cr.rel_move_to(*arg)
cr.line_to(*args[i])
elif command == 'm':
for i in range(0, len(args)):
if i == 0:
if last == 'Z' or last == 'z':
cr.move_to(*args[i])
else:
cr.rel_move_to(*args[i])
else:
cr.rel_line_to(*args[i])
elif command == 'L':
for arg in args:
cr.line_to(*arg)