examples: Use FilterDefault at NewImage

This commit is contained in:
Hajime Hoshi 2018-10-12 00:32:44 +09:00
parent 7e604c6890
commit 0509abfab6
3 changed files with 3 additions and 3 deletions

View File

@ -33,7 +33,7 @@ var (
)
func init() {
dot, _ = ebiten.NewImage(1, 1, ebiten.FilterNearest)
dot, _ = ebiten.NewImage(1, 1, ebiten.FilterDefault)
dot.Fill(color.White)
}

View File

@ -111,7 +111,7 @@ func init() {
origEbitenImage, _ := ebiten.NewImageFromImage(img, ebiten.FilterDefault)
w, h := origEbitenImage.Size()
ebitenImage, _ = ebiten.NewImage(w, h, ebiten.FilterNearest)
ebitenImage, _ = ebiten.NewImage(w, h, ebiten.FilterDefault)
op := &ebiten.DrawImageOptions{}
op.ColorM.Scale(1, 1, 1, 0.5)

View File

@ -111,7 +111,7 @@ func init() {
origEbitenImage, _ := ebiten.NewImageFromImage(img, ebiten.FilterDefault)
w, h := origEbitenImage.Size()
ebitenImage, _ = ebiten.NewImage(w, h, ebiten.FilterNearest)
ebitenImage, _ = ebiten.NewImage(w, h, ebiten.FilterDefault)
op := &ebiten.DrawImageOptions{}
op.ColorM.Scale(1, 1, 1, 0.5)