summaryrefslogtreecommitdiff
path: root/gerbonara/rs274x.py
diff options
context:
space:
mode:
Diffstat (limited to 'gerbonara/rs274x.py')
-rw-r--r--gerbonara/rs274x.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/gerbonara/rs274x.py b/gerbonara/rs274x.py
index 8c6d9ae..062f246 100644
--- a/gerbonara/rs274x.py
+++ b/gerbonara/rs274x.py
@@ -292,7 +292,7 @@ class GerberFile(CamFile):
for obj in self.objects:
obj.offset(dx, dy, unit)
- def rotate(self, angle:'radian', center=(0,0), unit=MM):
+ def rotate(self, angle:'radian', cx=0, cy=0, unit=MM):
if math.isclose(angle % (2*math.pi), 0):
return
@@ -302,7 +302,7 @@ class GerberFile(CamFile):
ap.rotation += angle
for obj in self.objects:
- obj.rotate(angle, *center, unit)
+ obj.rotate(angle, cx, cy, unit)
def invert_polarity(self):
""" Invert the polarity (color) of each object in this file. """