Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GIF generation #18

Open
DyeffersonAz opened this issue May 1, 2018 · 3 comments
Open

GIF generation #18

DyeffersonAz opened this issue May 1, 2018 · 3 comments

Comments

@DyeffersonAz
Copy link

Make it output a gif to share with friends. That gif'd show how the computer "solved" that problem, but faster than it was.

@ondras
Copy link
Owner

ondras commented May 2, 2018

This sounds really nice, but I have literally zero knowledge on how to create an animated gif in client-side JavaScript :-(

@DyeffersonAz
Copy link
Author

https://yahoo.github.io/gifshot/

Is it applicable?

@Ataraxy
Copy link

Ataraxy commented Jul 7, 2018

So this would take some doing but it should be possible with 'gifshot'.

One approach would be to take the end result SVG, parse each individual path from it (they're already in order of creation), create an empty SVG element, and then one by one take each path and add it to the new SVG element. Each time you add a path, generate an image from this SVG element.

When done, you'll have an image for each "frame" which you could then use gifshot or another similar library such as ffmpeg to sitch them all together to create a gif.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants