Refactor a little

pulled all rendering stuff out of the pcb/layer objects
This commit is contained in:
Hamilton Kibbe 2016-01-01 12:25:38 -05:00
parent 5430fa6738
commit 6a005436b4
5 changed files with 68 additions and 74 deletions

View file

@ -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