summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorHamilton Kibbe <hamilton.kibbe@gmail.com>2016-12-13 20:22:54 -0500
committerHamilton Kibbe <hamilton.kibbe@gmail.com>2016-12-13 20:22:54 -0500
commit19a8fb00487ca182bd3127b4def52719d8be3e30 (patch)
treec4471ed0a19f8d112bb150d51f16df0bfa106ebf /examples
parent7c4ec8a768c7dfd3124c6b68805031367a80a890 (diff)
downloadgerbonara-19a8fb00487ca182bd3127b4def52719d8be3e30.tar.gz
gerbonara-19a8fb00487ca182bd3127b4def52719d8be3e30.tar.bz2
gerbonara-19a8fb00487ca182bd3127b4def52719d8be3e30.zip
Add max_width and max_height arguments to
Diffstat (limited to 'examples')
-rw-r--r--examples/pcb_bottom.pngbin36992 -> 49825 bytes
-rw-r--r--examples/pcb_example.py6
-rw-r--r--examples/pcb_top.pngbin92371 -> 104847 bytes
-rw-r--r--examples/pcb_transparent_copper.pngbin85285 -> 110043 bytes
4 files changed, 3 insertions, 3 deletions
diff --git a/examples/pcb_bottom.png b/examples/pcb_bottom.png
index 1834c06..e7fc616 100644
--- a/examples/pcb_bottom.png
+++ b/examples/pcb_bottom.png
Binary files differ
diff --git a/examples/pcb_example.py b/examples/pcb_example.py
index e6a56fc..9e066a8 100644
--- a/examples/pcb_example.py
+++ b/examples/pcb_example.py
@@ -37,16 +37,16 @@ pcb = PCB.from_directory(GERBER_FOLDER)
# Render PCB top view
ctx.render_layers(pcb.top_layers,
os.path.join(os.path.dirname(__file__), 'pcb_top.png',),
- theme.THEMES['OSH Park'])
+ theme.THEMES['OSH Park'], max_width=800, max_height=600)
# Render PCB bottom view
ctx.render_layers(pcb.bottom_layers,
os.path.join(os.path.dirname(__file__), 'pcb_bottom.png'),
- theme.THEMES['OSH Park'])
+ theme.THEMES['OSH Park'], max_width=800, max_height=600)
# Render copper layers only
ctx.render_layers(pcb.copper_layers + pcb.drill_layers,
os.path.join(os.path.dirname(__file__),
'pcb_transparent_copper.png'),
- theme.THEMES['Transparent Copper'])
+ theme.THEMES['Transparent Copper'], max_width=800, max_height=600)
diff --git a/examples/pcb_top.png b/examples/pcb_top.png
index b6b65d0..ea0cc5b 100644
--- a/examples/pcb_top.png
+++ b/examples/pcb_top.png
Binary files differ
diff --git a/examples/pcb_transparent_copper.png b/examples/pcb_transparent_copper.png
index 9aa0f0c..0c8642f 100644
--- a/examples/pcb_transparent_copper.png
+++ b/examples/pcb_transparent_copper.png
Binary files differ