Skip to content

Commit

Permalink
added async gif example
Browse files Browse the repository at this point in the history
  • Loading branch information
pkrumins committed Aug 7, 2010
1 parent e1af308 commit 39bd23c
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions tests/gif-async.js
@@ -0,0 +1,14 @@
var fs = require('fs');
var sys = require('sys');
var Gif = require('gif').Gif;
var Buffer = require('buffer').Buffer;

var terminal = fs.readFileSync('./terminal.rgb');

var gif = new Gif(terminal, 720, 400, 'rgb');

gif.encode(function (data) {
fs.writeFileSync('./terminal-async.gif', data, 'binary');
});


0 comments on commit 39bd23c

Please sign in to comment.