I am trying to load an image from a url then put it on the screen for the background of my game.
local function setBackground(image)
--display image on screen here
end
local function http_result(self, id, response)
setBackground(image.load(response.response))
end
function init(self)
http.request("http://example.com/image.png", "GET", http_result)
end
Any idea how to do this? Thanks in advance.