mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-12-25 11:18:54 +01:00
Bug fix: Translate -> TranslateColor
This commit is contained in:
parent
6eaec92a4e
commit
c3e909676c
@ -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{
|
||||
|
Loading…
Reference in New Issue
Block a user