Replies: 2 comments
-
Hi, here are some references that might be helpful:
|
Beta Was this translation helpful? Give feedback.
0 replies
-
How can I animate a series of vector graphics into one image - svg and animated!? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi, I'm trying to create an animated SVG by looping over all moves in the game and saving a snapshot of each. I've thus far been able to save the static svgs in a folder labelled sequentially, like "svg1, svg2, etc"
My next step is to sort of stitch them together into an animated SVG so that it loops over all the moves and shows the whole game state changing over time, and then embed it into an HTML page... I'm sort of stuck on how to proceed after getting all the static svgs of a game however.
Instead of saving the svgs to a file, I thought about saving them as a variable, and then importing that variable to the html page so that I could render it using django. Does this seem workable? Has anybody done something similar before? Appreciate any advice.
Here is my code so far:
Note that at the bottom, I am converting the SVGs to PNGs, but that doesn't seem to work for some reason, it leads to this sort of bleeding effect:
Saving SVGs in their native format does not have this problem.
Beta Was this translation helpful? Give feedback.
All reactions