mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-12-26 03:38:55 +01:00
examples: Use FilterDefault at NewImage
This commit is contained in:
parent
7e604c6890
commit
0509abfab6
@ -33,7 +33,7 @@ var (
|
|||||||
)
|
)
|
||||||
|
|
||||||
func init() {
|
func init() {
|
||||||
dot, _ = ebiten.NewImage(1, 1, ebiten.FilterNearest)
|
dot, _ = ebiten.NewImage(1, 1, ebiten.FilterDefault)
|
||||||
dot.Fill(color.White)
|
dot.Fill(color.White)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -111,7 +111,7 @@ func init() {
|
|||||||
origEbitenImage, _ := ebiten.NewImageFromImage(img, ebiten.FilterDefault)
|
origEbitenImage, _ := ebiten.NewImageFromImage(img, ebiten.FilterDefault)
|
||||||
|
|
||||||
w, h := origEbitenImage.Size()
|
w, h := origEbitenImage.Size()
|
||||||
ebitenImage, _ = ebiten.NewImage(w, h, ebiten.FilterNearest)
|
ebitenImage, _ = ebiten.NewImage(w, h, ebiten.FilterDefault)
|
||||||
|
|
||||||
op := &ebiten.DrawImageOptions{}
|
op := &ebiten.DrawImageOptions{}
|
||||||
op.ColorM.Scale(1, 1, 1, 0.5)
|
op.ColorM.Scale(1, 1, 1, 0.5)
|
||||||
|
@ -111,7 +111,7 @@ func init() {
|
|||||||
origEbitenImage, _ := ebiten.NewImageFromImage(img, ebiten.FilterDefault)
|
origEbitenImage, _ := ebiten.NewImageFromImage(img, ebiten.FilterDefault)
|
||||||
|
|
||||||
w, h := origEbitenImage.Size()
|
w, h := origEbitenImage.Size()
|
||||||
ebitenImage, _ = ebiten.NewImage(w, h, ebiten.FilterNearest)
|
ebitenImage, _ = ebiten.NewImage(w, h, ebiten.FilterDefault)
|
||||||
|
|
||||||
op := &ebiten.DrawImageOptions{}
|
op := &ebiten.DrawImageOptions{}
|
||||||
op.ColorM.Scale(1, 1, 1, 0.5)
|
op.ColorM.Scale(1, 1, 1, 0.5)
|
||||||
|
Loading…
Reference in New Issue
Block a user