Closed fuggla closed 4 years ago
For SVG, no, not currently. But there is a Graphics:serialize()
function that returns a Lua table that can then be reinstantiated:
x = myGraphics:serialize()
local newInstance = tove.newGraphics(x)
This is used in the editor
demo. But I'm not sure how well tested this is. It should basically work.
Ok, thanks!
Is it possible to save Graphics as text/svg? If so, how? I had a look in the docs but couldn't find anything.
Something like this :)