diff options
author | Hamilton Kibbe <hamilton.kibbe@gmail.com> | 2015-12-20 23:54:20 -0500 |
---|---|---|
committer | Hamilton Kibbe <hamilton.kibbe@gmail.com> | 2015-12-20 23:54:20 -0500 |
commit | af5541ac93b222c05229ee05c9def8dbae5f6e25 (patch) | |
tree | 947d56c540c66e589dff563ccb367c47547dfdad /gerber/cam.py | |
parent | d1598b46c91ee36719460d49d7ba2ed5ecd0ef45 (diff) | |
download | gerbonara-af5541ac93b222c05229ee05c9def8dbae5f6e25.tar.gz gerbonara-af5541ac93b222c05229ee05c9def8dbae5f6e25.tar.bz2 gerbonara-af5541ac93b222c05229ee05c9def8dbae5f6e25.zip |
Allow renderer to write to memory per #38
Some updates to rendering colors/themes
Diffstat (limited to 'gerber/cam.py')
-rw-r--r-- | gerber/cam.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gerber/cam.py b/gerber/cam.py index cf06ec9..92ce83d 100644 --- a/gerber/cam.py +++ b/gerber/cam.py @@ -256,9 +256,10 @@ class CamFile(object): """ ctx.set_bounds(self.bounds) ctx._paint_background() + if invert: ctx.invert = True - ctx._paint_inverted_layer() + ctx._clear_mask() for p in self.primitives: ctx.render(p) if invert: |