Add support for (angle, radius) tuples as param of polyline
This commit is contained in:
parent
60b12f821e
commit
1425d730f5
|
@ -458,11 +458,15 @@ class Boxes:
|
||||||
"""
|
"""
|
||||||
Draw multiple connected lines
|
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):
|
for i, arg in enumerate(args):
|
||||||
if i % 2:
|
if i % 2:
|
||||||
|
if isinstance(arg, tuple):
|
||||||
|
self.corner(*arg)
|
||||||
|
else:
|
||||||
self.corner(arg)
|
self.corner(arg)
|
||||||
else:
|
else:
|
||||||
self.edge(arg)
|
self.edge(arg)
|
||||||
|
|
Loading…
Reference in New Issue