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 command, args = item
if command == 'M': if command == 'M':
for arg in args: for i in range(0, len(args)):
cr.move_to(*arg) if i == 0:
elif command == 'm': cr.move_to(*args[i])
for arg in args:
if last == 'Z' or last == 'z':
cr.move_to(*arg)
else: 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': elif command == 'L':
for arg in args: for arg in args:
cr.line_to(*arg) cr.line_to(*arg)