Add support for (angle, radius) tuples as param of polyline
This commit is contained in:
parent
60b12f821e
commit
1425d730f5
|
@ -458,12 +458,16 @@ class Boxes:
|
|||
"""
|
||||
Draw multiple connected lines
|
||||
|
||||
:param \*args: Alternating length in mm and angle
|
||||
:param \*args: Alternating length in mm and angle. angle may be tuple
|
||||
(angle, radius)
|
||||
|
||||
"""
|
||||
for i, arg in enumerate(args):
|
||||
if i % 2:
|
||||
self.corner(arg)
|
||||
if isinstance(arg, tuple):
|
||||
self.corner(*arg)
|
||||
else:
|
||||
self.corner(arg)
|
||||
else:
|
||||
self.edge(arg)
|
||||
|
||||
|
|
Loading…
Reference in New Issue