mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-12-24 18:58:54 +01:00
Use new style methods of matrices (ColorM)
This commit is contained in:
parent
4226354e4a
commit
8145561219
@ -87,9 +87,9 @@ func (s *SceneManager) Draw(r *ebiten.Image) error {
|
|||||||
}
|
}
|
||||||
|
|
||||||
alpha := float64(s.transitionCount) / float64(transitionMaxCount)
|
alpha := float64(s.transitionCount) / float64(transitionMaxCount)
|
||||||
return r.DrawImage(transitionTo, &ebiten.DrawImageOptions{
|
op := &ebiten.DrawImageOptions{}
|
||||||
ColorM: ebiten.ScaleColor(1, 1, 1, alpha),
|
op.ColorM.Scale(1, 1, 1, alpha)
|
||||||
})
|
return r.DrawImage(transitionTo, op)
|
||||||
}
|
}
|
||||||
|
|
||||||
func (s *SceneManager) GoTo(scene Scene) {
|
func (s *SceneManager) GoTo(scene Scene) {
|
||||||
|
Loading…
Reference in New Issue
Block a user