Page 1 of 1
Removing blur on scaled sprites
Posted: Sun Dec 27, 2015 11:16 am
by mitterdoo
I've been trying to make a 16-bit styled game with small sprites, but when I try to scale them, I just get a heavily blurred image instead.
Is there any way to get rid of this effect?
Re: Removing blur on scaled sprites
Posted: Sun Dec 27, 2015 12:37 pm
by veethree
Image:setFilter("nearest", "nearest")
You could also use
love.graphics.setDefaultFilter() before loading the images so you don't have to set the filter for each.
Code: Select all
image = love.graphics.newImage("Image.png")
image:setFilter("nearest", "nearest")
or
Code: Select all
love.graphics.setDefaultFilter("nearest", "nearest")
image = love.graphics.newImage("Image.png")
image2 = love.graphics.newImage("Image2.png")
Re: Removing blur on scaled sprites
Posted: Sun Dec 27, 2015 12:42 pm
by mitterdoo