mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-12-25 11:18:54 +01:00
examples: Use FilterDefault at NewImage
This commit is contained in:
parent
7e604c6890
commit
0509abfab6
@ -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)
|
||||
}
|
||||
|
||||
|
@ -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)
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user