Can I read SVG images and just draw parts?
Posted: Sun Feb 04, 2018 9:44 am
I have some SVG images of a tree I have drawn. It consists of the main stem of the tree and a few small groups of leaves. I would like to be able to draw all leaves or just some of the leaves based on the time of the year. I also want to be able to talk to the different parts of the tree s.t. I can animate them differently (let the leaves shake in the wind).
The by far nicest solution for me would be to be able to import the SVG image in Love/Lua and then just render parts of it to a canvas or something (for example just specific layers). Then I would just have to do the SVGs in Inkscape and import them. Is this possible? (How much work is this?)
My other idea is just to export the different parts of the image in images of exactly the same size and draw all of these images above each other. But then I have to export all of the parts every time I rescale something for example. If this is the way to go, are there tools that make any part of the process easier? (Can be Inkscape specific tips)
Or is there a whole other way to do this easy which I am not seeing?
The by far nicest solution for me would be to be able to import the SVG image in Love/Lua and then just render parts of it to a canvas or something (for example just specific layers). Then I would just have to do the SVGs in Inkscape and import them. Is this possible? (How much work is this?)
My other idea is just to export the different parts of the image in images of exactly the same size and draw all of these images above each other. But then I have to export all of the parts every time I rescale something for example. If this is the way to go, are there tools that make any part of the process easier? (Can be Inkscape specific tips)
Or is there a whole other way to do this easy which I am not seeing?