diff options
author | Hamilton Kibbe <hkibbe@entic.com> | 2017-06-12 07:58:06 -0400 |
---|---|---|
committer | Hamilton Kibbe <hkibbe@entic.com> | 2017-06-12 07:58:06 -0400 |
commit | f7a719e6f72dc80c34bd6a1015e81f0d2b370689 (patch) | |
tree | 66b6e2cfd3ae428a55758323369aba921e042ecd /gerber/render/cairo_backend.py | |
parent | a5aa8bc9baa93db1313820b79272cb4900e341b8 (diff) | |
download | gerbonara-f7a719e6f72dc80c34bd6a1015e81f0d2b370689.tar.gz gerbonara-f7a719e6f72dc80c34bd6a1015e81f0d2b370689.tar.bz2 gerbonara-f7a719e6f72dc80c34bd6a1015e81f0d2b370689.zip |
Fix error when unpacking colors in cairo backend
Diffstat (limited to 'gerber/render/cairo_backend.py')
-rw-r--r-- | gerber/render/cairo_backend.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gerber/render/cairo_backend.py b/gerber/render/cairo_backend.py index 76be60a..7c97cc9 100644 --- a/gerber/render/cairo_backend.py +++ b/gerber/render/cairo_backend.py @@ -565,7 +565,7 @@ class GerberCairoContext(GerberContext): def _flatten(self, color=None, alpha=None): color = color if color is not None else self.color alpha = alpha if alpha is not None else self.alpha - self.output_ctx.set_source_rgba(*color, alpha=alpha) + self.output_ctx.set_source_rgba(color[0], color[1], color[2], alpha) self.output_ctx.mask_surface(self.active_layer) self.ctx = None self.active_layer = None @@ -576,7 +576,7 @@ class GerberCairoContext(GerberContext): alpha = settings.alpha if settings is not None else 1.0 if not self.has_bg: self.has_bg = True - self.output_ctx.set_source_rgba(*color, alpha=alpha) + self.output_ctx.set_source_rgba(color[0], color[1], color[2], alpha) self.output_ctx.paint() def _clip_primitive(self, primitive): |