mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-12-26 03:38:55 +01:00
parent
a6dd6196b4
commit
256adfff9d
@ -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))
|
||||||
|
Loading…
Reference in New Issue
Block a user