mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-12-26 03:38:55 +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.
|
// 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)
|
rf, gf, bf, af := rgba(clr)
|
||||||
return ColorMatrix{
|
return ColorMatrix{
|
||||||
[ColorMatrixDim - 1][ColorMatrixDim]float64{
|
[ColorMatrixDim - 1][ColorMatrixDim]float64{
|
||||||
|
Loading…
Reference in New Issue
Block a user