summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authoropiopan <opiopan@gmail.com>2019-04-03 00:30:00 +0900
committeropiopan <opiopan@gmail.com>2019-04-03 00:30:00 +0900
commitcb420e39e278f7ab6f002600a7698d7be101eb7d (patch)
tree1d82fcd72627c71715ec0b9724c8f976a49bdfdd /examples
parentb72d891998cc87273b9dd8bfe4d864cbe6a8cc62 (diff)
downloadgerbonara-cb420e39e278f7ab6f002600a7698d7be101eb7d.tar.gz
gerbonara-cb420e39e278f7ab6f002600a7698d7be101eb7d.tar.bz2
gerbonara-cb420e39e278f7ab6f002600a7698d7be101eb7d.zip
fix a rotaion issue
Diffstat (limited to 'examples')
-rwxr-xr-xexamples/panelize.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/examples/panelize.py b/examples/panelize.py
index 1c5c0da..34cc446 100755
--- a/examples/panelize.py
+++ b/examples/panelize.py
@@ -37,16 +37,17 @@ for ext in exts:
ctx = DrillComposition()
else:
ctx = GerberComposition()
- for path, x_offset, y_offset, theta in boards:
+ for path, x_offset, y_offset, angle in boards:
file = gerberex.read(path + ext)
file.to_metric()
- file.rotate(theta)
+ file.rotate(angle)
file.offset(x_offset, y_offset)
ctx.merge(file)
putstr('.')
if ext == 'TXT':
file = gerberex.read(mousebites)
file.draw_mode = DxfFile.DM_MOUSE_BITES
+ file.to_metric()
file.width = 0.5
file.format = (3, 3)
ctx.merge(file)