Refactor a little
pulled all rendering stuff out of the pcb/layer objects
This commit is contained in:
parent
5430fa6738
commit
6a005436b4
5 changed files with 68 additions and 74 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue