mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-12-25 11:18:54 +01:00
Change the filter
This commit is contained in:
parent
60a1626724
commit
9bd0f9363c
@ -67,7 +67,7 @@ func (g *Game) Update(gr ebiten.GraphicsContext) error {
|
||||
func main() {
|
||||
g := new(Game)
|
||||
var err error
|
||||
g.gophersTexture, _, err = ebitenutil.NewTextureFromFile("images/gophers.jpg", ebiten.FilterLinear)
|
||||
g.gophersTexture, _, err = ebitenutil.NewTextureFromFile("images/gophers.jpg", ebiten.FilterNearest)
|
||||
if err != nil {
|
||||
log.Fatal(err)
|
||||
}
|
||||
|
@ -55,7 +55,7 @@ func (g *Game) Update(gr ebiten.GraphicsContext) error {
|
||||
func main() {
|
||||
g := new(Game)
|
||||
var err error
|
||||
g.gophersTexture, _, err = ebitenutil.NewTextureFromFile("images/gophers.jpg", ebiten.FilterLinear)
|
||||
g.gophersTexture, _, err = ebitenutil.NewTextureFromFile("images/gophers.jpg", ebiten.FilterNearest)
|
||||
if err != nil {
|
||||
log.Fatal(err)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user