summaryrefslogtreecommitdiff
path: root/test/panelimage.py
diff options
context:
space:
mode:
authoropiopan <opiopan@gmail.com>2019-03-31 13:30:15 +0900
committeropiopan <opiopan@gmail.com>2019-03-31 13:30:15 +0900
commit900d992fa3af05f93ac7a4cf717f28598e1a868d (patch)
treefdd66ac71dcfb6a4d173268f0ead73cdcfd47600 /test/panelimage.py
parentfcd704e1eef9034e2000f55b2918d7df41379408 (diff)
downloadgerbonara-900d992fa3af05f93ac7a4cf717f28598e1a868d.tar.gz
gerbonara-900d992fa3af05f93ac7a4cf717f28598e1a868d.tar.bz2
gerbonara-900d992fa3af05f93ac7a4cf717f28598e1a868d.zip
auto detection closed paths in the collection of DXF arc object and line object, then fill these closed path
Diffstat (limited to 'test/panelimage.py')
-rwxr-xr-xtest/panelimage.py38
1 files changed, 0 insertions, 38 deletions
diff --git a/test/panelimage.py b/test/panelimage.py
deleted file mode 100755
index 0636555..0000000
--- a/test/panelimage.py
+++ /dev/null
@@ -1,38 +0,0 @@
-#!/usr/bin/env python
-from gerber import load_layer
-from gerber.render import RenderSettings, theme
-from gerber.render.cairo_backend import GerberCairoContext
-
-print('loading ', end='', flush=True)
-copper = load_layer('panelized.GTL')
-print('.', end='', flush=True)
-mask = load_layer('panelized.GTS')
-print('.', end='', flush=True)
-silk = load_layer('panelized.GTO')
-print('.', end='', flush=True)
-drill = load_layer('panelized.TXT')
-print('.', end='', flush=True)
-outline = load_layer('panelized-fill.GML')
-print('.', end='', flush=True)
-print('. end', flush=True)
-
-print('panelizing ', end='', flush=True)
-ctx = GerberCairoContext(scale=30)
-print('.', end='', flush=True)
-ctx.render_layer(copper)
-print('.', end='', flush=True)
-ctx.render_layer(mask)
-print('.', end='', flush=True)
-
-our_settings = RenderSettings(color=theme.COLORS['white'], alpha=0.85)
-ctx.render_layer(silk, settings=our_settings)
-print('.', end='', flush=True)
-
-ctx.render_layer(outline)
-print('.', end='', flush=True)
-ctx.render_layer(drill)
-print('.', end='', flush=True)
-print('. end', flush=True)
-
-print('dumping top...')
-ctx.dump('panelized.png')