From c3e909676cd57b96fa2ed316dc90bfc5c9562ba0 Mon Sep 17 00:00:00 2001 From: Hajime Hoshi Date: Mon, 15 Dec 2014 02:06:01 +0900 Subject: [PATCH] Bug fix: Translate -> TranslateColor --- colormatrix.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/colormatrix.go b/colormatrix.go index 9b52e4dd4..6f450186a 100644 --- a/colormatrix.go +++ b/colormatrix.go @@ -95,7 +95,7 @@ func ScaleColor(clr color.Color) ColorMatrix { } // TranslateColor returns a color matrix that translates a color matrix by clr. -func (c *ColorMatrix) Translate(clr color.Color) ColorMatrix { +func TranslateColor(clr color.Color) ColorMatrix { rf, gf, bf, af := rgba(clr) return ColorMatrix{ [ColorMatrixDim - 1][ColorMatrixDim]float64{