summaryrefslogtreecommitdiff
path: root/gerber/render/render.py
diff options
context:
space:
mode:
authorHamilton Kibbe <hamilton.kibbe@gmail.com>2016-01-01 12:25:38 -0500
committerHamilton Kibbe <hamilton.kibbe@gmail.com>2016-01-01 12:25:38 -0500
commit6a005436b475e3517fd6a583473b60e601bcc661 (patch)
tree5678cff7ba877e9c93ea63445f081fd0430f8b4b /gerber/render/render.py
parent5430fa6738b74f324c47c947477dd5b779db5d1c (diff)
downloadgerbonara-6a005436b475e3517fd6a583473b60e601bcc661.tar.gz
gerbonara-6a005436b475e3517fd6a583473b60e601bcc661.tar.bz2
gerbonara-6a005436b475e3517fd6a583473b60e601bcc661.zip
Refactor a little
pulled all rendering stuff out of the pcb/layer objects
Diffstat (limited to 'gerber/render/render.py')
-rw-r--r--gerber/render/render.py10
1 files changed, 6 insertions, 4 deletions
diff --git a/gerber/render/render.py b/gerber/render/render.py
index c76ead5..6af8bf1 100644
--- a/gerber/render/render.py
+++ b/gerber/render/render.py
@@ -183,8 +183,10 @@ class GerberContext(object):
pass
-class Renderable(object):
- def __init__(self, settings=None):
- self.settings = settings
- self.primitives = []
+class RenderSettings(object):
+ def __init__(self, color=(0.0, 0.0, 0.0), alpha=1.0, invert=False, mirror=False):
+ self.color = color
+ self.alpha = alpha
+ self.invert = invert
+ self.mirror = mirror