mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-12-27 04:08:53 +01:00
Remove ebiten.rgba
This commit is contained in:
parent
a5b4b605dd
commit
2810161cdb
@ -149,12 +149,3 @@ func RotateHue(theta float64) ColorM {
|
|||||||
},
|
},
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
func rgba(r, g, b, a uint8) (float64, float64, float64, float64) {
|
|
||||||
const max = math.MaxUint8
|
|
||||||
rf := float64(r) / max
|
|
||||||
gf := float64(g) / max
|
|
||||||
bf := float64(b) / max
|
|
||||||
af := float64(a) / max
|
|
||||||
return rf, gf, bf, af
|
|
||||||
}
|
|
||||||
|
Loading…
Reference in New Issue
Block a user