internal/affine: Add tests

Updates #1474
This commit is contained in:
Hajime Hoshi 2021-01-28 02:24:21 +09:00
parent a6dd6196b4
commit 256adfff9d

View File

@ -449,7 +449,7 @@ func (c *ColorM) Scale(r, g, b, a float32) *ColorM {
if c.body == nil { if c.body == nil {
return getCachedScalingColorM(r, g, b, a) 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)) eb := make([]float32, len(colorMIdentityBody))