From ffbeb6b2319b10b2107afed5aab50e75d7027516 Mon Sep 17 00:00:00 2001 From: Derek Schaab Date: Sat, 30 Sep 2017 21:34:46 -0500 Subject: [PATCH] Return alpha-premultiplied color in gradient interpolation Fixes #25. --- gradient.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gradient.go b/gradient.go index 1625520..a9cad59 100644 --- a/gradient.go +++ b/gradient.go @@ -189,7 +189,7 @@ func colorLerp(c0, c1 color.Color, t float64) color.Color { r0, g0, b0, a0 := c0.RGBA() r1, g1, b1, a1 := c1.RGBA() - return color.NRGBA{ + return color.RGBA{ lerp(r0, r1, t), lerp(g0, g1, t), lerp(b0, b1, t),