Since web pages can usually natively play GIFs fine, it's only a port of the GIFEncoder portions of the library. But there are some differences so I'll cover it here anyway. You first need to include ...
GitHub - zawsx/3D-HTML5-canvas2gif-jsgif: Save a HTML5 Canvas to GIF and Animations. A port of as3gif GIFPlayer to JS zawsx / 3D-HTML5-canvas2gif-jsgif Public forked from antimatter15/jsgif ...