how are you?
I have a question for you please.
I have this code:
local myrt = RenderTarget.new(self.myrealsprite:getWidth(), self.myrealsprite:getHeight())
myrt:draw(self.myrealsprite)
myrt:save("|T|mytile.png")
print("saved?") |
In HTML5, the png image is indeed saved somewhere on my computer but where? (this was the question)
Edit: it is saved into RAM not file because of |T| (thanks hgy29).
Can we ask the user where to save the image in html5? (this is the new question
)
Media plugin works fine on android and windows for this task but it doesn't support html5
My prototype:
https://mokalux.itch.io/onetiletotileset?secret=8Xi3Bi3W68YdlczWEJZQ8R15Zw
Comments
Likes: MoKaLux