Animated Gifs in Cinder

It’s crazy to think that we are all still talking about animated gifs in 2015. But we are. Even though it may seem like a silly thing to do, Cinder supports the loading and displaying of animated gifs.

Following is a simple class for loading and playing said animated gifs. All it does is loads the animated gif from your asset folder. You can optionally set the framerate to something other than the default 60fps. Note, this doesn’t take the original gif framerate and timing into account. It simply loads and stores references to the frames of the gif. If you want more advanced control over decoding and encoding animated gifs, check out Jesús Gollonet’s GifEncoder and GifDecoder Open Frameworks add-ons. You should be able to use them in Cinder with relatively little effort.

Greg Kepler is an interactive developer at the Barbarian Group. He started as a design student graduating from RIT with a degree in New Media Design and Imaging in 2004 and fell in love with Flash. He worked for 4 years as a designer, developer, and interactive studio manager at Iomedia and moved on to the Barbarian Group in 2010 as an interactive developer where he tries to get his hands dirty with whatever technologies he can.

  • Frankly I think that’s abtleusoly good stuff.