From d3e574108b2d3f518cafe6d41ff8b52f78e9fa48 Mon Sep 17 00:00:00 2001 From: Michael Fogleman Date: Thu, 18 Feb 2016 21:07:44 -0500 Subject: [PATCH] bug fix; use NRGBA --- context.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/context.go b/context.go index 98ec5e3..06e59a2 100644 --- a/context.go +++ b/context.go @@ -68,7 +68,7 @@ func (c *Context) Paint() { } func (c *Context) SetSourceRGBA(r, g, b, a float64) { - c.color = color.RGBA{ + c.color = color.NRGBA{ uint8(r * 255), uint8(g * 255), uint8(b * 255),