HashLips / generative-art-opensource

Create generative art by using the canvas api and node js, feel free to contribute to this repo with new ideas.
MIT License
1.36k stars 695 forks source link

Can I save the output as a different file type? #86

Open lakiert opened 2 years ago

lakiert commented 2 years ago

I want to make gif pictures, but i dont know JavaScript and I only tried to change the ".png" to ".gif" in the index.js file, which didnt work, so I guess that would be too simple to work. Did anyone try to create files other than png?

MooseTheCoder commented 2 years ago

If you simply want to change the file format, you could use something like cloudconvert to convert the file encoding. If you are looking to create actual animated gifs, you'd want to look into extending the codebase yourself.

lakiert commented 2 years ago

Thank you for the answer, i will try to do some research and maybe i will learn some JavaScript on the way. But if anyone did it or is going to do it I would also really apprieciate if they sent here some code. And by the way, playing a bit with the code and creating the pngs is so much fun :D