mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-12-24 10:48:53 +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)
|
||||
return r.DrawImage(transitionTo, &ebiten.DrawImageOptions{
|
||||
ColorM: ebiten.ScaleColor(1, 1, 1, alpha),
|
||||
})
|
||||
op := &ebiten.DrawImageOptions{}
|
||||
op.ColorM.Scale(1, 1, 1, alpha)
|
||||
return r.DrawImage(transitionTo, op)
|
||||
}
|
||||
|
||||
func (s *SceneManager) GoTo(scene Scene) {
|
||||
|
Loading…
Reference in New Issue
Block a user