I've been programming Lua for 3 years...
O.o
And thanks.
It's just that I'm new to LOVE.
Search found 3 matches
- Wed Dec 01, 2010 10:01 pm
- Forum: Support and Development
- Topic: Images?
- Replies: 9
- Views: 4400
- Tue Nov 30, 2010 9:21 pm
- Forum: Support and Development
- Topic: Images?
- Replies: 9
- Views: 4400
Re: Images?
New: function love.draw() function newPaddedImage(filename) local source = love.image.newImageData(filename) local w, h = source:getWidth(), source:getHeight() -- Find closest power-of-two. local wp = math.pow(2, math.ceil(math.log(w)/math.log(2))) local hp = math.pow(2, math.ceil(math.log(h)/math.l...
- Tue Nov 30, 2010 9:08 pm
- Forum: Support and Development
- Topic: Images?
- Replies: 9
- Views: 4400
Images?
The Wiki isn't a very strong source... function love.draw() function newPaddedImage(filename) local source = love.image.newImageData(filename) local w, h = source:getWidth(), source:getHeight() -- Find closest power-of-two. local wp = math.pow(2, math.ceil(math.log(w)/math.log(2))) local hp = math.p...