Skip to content
forked from snowkit/gif

Haxe GIF encoder, implementing the NeuQuant and LZW encoding algorithms

Notifications You must be signed in to change notification settings

RblSb/openfl-gif

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 

Repository files navigation

GIF (OpenFL version)

A GIF format encoder. This only deals with the encoding (writing) and not reading of GIF files (see format).

Haxe port by KeyMaster- and underscorediscovery from Chman/Moments

LICENSE: The individual files are licensed accordingly. REQUIREMENTS: Haxe 3.2+, no dependencies


Install

haxelib git gif https://github.com/RblSb/gif.git

Then, add openfl-gif as a library dependency to your project.

Simple usage

var gif = new Gif(
	width:Int,
	height:Int,
	delay:Float = 0.03, //delay in seconds
	repeat:Int = -1, //Infinite = -1, None = 0
	quality:Int = 10, //Worst = 100, Best = 1
	skip:Int = 1 //1 - noskip, 2 - skip every second frame, 3 - every third
);

gif.addFrame(bmd1:BitmapData);
gif.addFrame(bmd2:BitmapData);

gif.save();

Helpers

See https://github.com/snowkit/gifcapture

About

Haxe GIF encoder, implementing the NeuQuant and LZW encoding algorithms

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Haxe 100.0%