Skip to content
This repository has been archived by the owner on Nov 21, 2017. It is now read-only.
/ openfl-gif Public archive

A GIF exporting extension for OpenFL. This repo is no longer supported.

License

Notifications You must be signed in to change notification settings

steverichey/openfl-gif

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Make GIFs in any OpenFL project.

Usage

import sys.io.File;
import openfl.display.BitmapData;
import extension.gif.GIFEncoder;

class MyClass
{
	static public function myFunction(FirstFrame:BitmapData, SecondFrame:BitmapData):Void
	{
		var encoder:GIFEncoder = new GIFEncoder();
		encoder.addFrame(FirstFrame);
		encoder.addFrame(SecondFrame);
		encoder.finish();
		
		File.saveBytes("myGif.gif", encoder.output);
	}
}

Credits

Based on AS3Gif by Thibault Imbert, which in turn was based on AnimatedGifEncoder by Kevin Weiner.

  • Lempel–Ziv–Welch (LZW) encoding originally by Jef Poskanzer by way of J.M.G. Elliott.
  • NeuQuant neural net quantization by Anthony Dekker (see copyright notice in NeuQuant.hx).
  • Haxe neural net code by Nickolay Grebenshikov.

License

Shared under an MIT license. See license.md for details.

About

A GIF exporting extension for OpenFL. This repo is no longer supported.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages