diff options
author | Hamilton Kibbe <hamilton.kibbe@gmail.com> | 2016-01-21 03:57:44 -0500 |
---|---|---|
committer | Garret Fick <garret@ficksworkshop.com> | 2016-08-06 09:40:40 +0800 |
commit | 8cd842a41a55ab3d8f558a2e3e198beba7da58a1 (patch) | |
tree | 895d818072e043ac5275ed6cdc1d724ea5cd489a /gerber/render/theme.py | |
parent | 965d3ce23b92f8aff1063debd6d3364de15791fe (diff) | |
download | gerbonara-8cd842a41a55ab3d8f558a2e3e198beba7da58a1.tar.gz gerbonara-8cd842a41a55ab3d8f558a2e3e198beba7da58a1.tar.bz2 gerbonara-8cd842a41a55ab3d8f558a2e3e198beba7da58a1.zip |
Manually mere rendering changes
Diffstat (limited to 'gerber/render/theme.py')
-rw-r--r-- | gerber/render/theme.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gerber/render/theme.py b/gerber/render/theme.py index e538df8..6135ccb 100644 --- a/gerber/render/theme.py +++ b/gerber/render/theme.py @@ -23,7 +23,7 @@ COLORS = { 'white': (1.0, 1.0, 1.0), 'red': (1.0, 0.0, 0.0), 'green': (0.0, 1.0, 0.0), - 'blue' : (0.0, 0.0, 1.0), + 'blue': (0.0, 0.0, 1.0), 'fr-4': (0.290, 0.345, 0.0), 'green soldermask': (0.0, 0.612, 0.396), 'blue soldermask': (0.059, 0.478, 0.651), @@ -36,6 +36,7 @@ COLORS = { class Theme(object): + def __init__(self, name=None, **kwargs): self.name = 'Default' if name is None else name self.background = kwargs.get('background', RenderSettings(COLORS['black'], alpha=0.0)) @@ -67,4 +68,3 @@ THEMES = { topmask=RenderSettings(COLORS['blue soldermask'], alpha=0.8, invert=True), bottommask=RenderSettings(COLORS['blue soldermask'], alpha=0.8, invert=True)), } - |