Permalink
Browse files

added async gif example

  • Loading branch information...
1 parent e1af308 commit 39bd23c29ce8f44f56a313ebab4de5f4f666a405 @pkrumins committed Aug 7, 2010
Showing with 14 additions and 0 deletions.
  1. +14 −0 tests/gif-async.js
View
@@ -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.