Bug fix: Translate -> TranslateColor

This commit is contained in:
Hajime Hoshi 2014-12-15 02:06:01 +09:00
parent 6eaec92a4e
commit c3e909676c

View File

@ -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{