diff options
author | Hamilton Kibbe <hamilton.kibbe@gmail.com> | 2016-01-01 12:25:38 -0500 |
---|---|---|
committer | Hamilton Kibbe <hamilton.kibbe@gmail.com> | 2016-01-01 12:25:38 -0500 |
commit | 6a005436b475e3517fd6a583473b60e601bcc661 (patch) | |
tree | 5678cff7ba877e9c93ea63445f081fd0430f8b4b /gerber/render/render.py | |
parent | 5430fa6738b74f324c47c947477dd5b779db5d1c (diff) | |
download | gerbonara-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.py | 10 |
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 |