From 256adfff9dd1e2e2902653fe2df934091f5b800d Mon Sep 17 00:00:00 2001 From: Hajime Hoshi Date: Thu, 28 Jan 2021 02:24:21 +0900 Subject: [PATCH] internal/affine: Add tests Updates #1474 --- internal/affine/colorm.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/affine/colorm.go b/internal/affine/colorm.go index eed0f0234..f0940bf88 100644 --- a/internal/affine/colorm.go +++ b/internal/affine/colorm.go @@ -449,7 +449,7 @@ func (c *ColorM) Scale(r, g, b, a float32) *ColorM { if c.body == nil { return getCachedScalingColorM(r, g, b, a) } - return getCachedScalingColorM(r * c.body[0], g * c.body[5], b * c.body[10], a * c.body[15]) + return getCachedScalingColorM(r*c.body[0], g*c.body[5], b*c.body[10], a*c.body[15]) } eb := make([]float32, len(colorMIdentityBody))