summaryrefslogtreecommitdiff
path: root/gerber
diff options
context:
space:
mode:
Diffstat (limited to 'gerber')
-rw-r--r--gerber/render/cairo_backend.py4
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):