Reputation: 559
I have a canvas which updates every 2 seconds.
How do I create a gif animation with canvas?
Maybe there is a way by merging getImageData with each frame to create a GIF?
Upvotes: 0
Views: 493
Reputation: 9465
You can't create an animated Gif with canvas.
What you can do is create a sprite - which works in a very similar way to a gif. If you're asking if this can be saved to a file, then no. A sprite is purely for display on your screen.
Upvotes: 1