Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

added async gif example

  • Loading branch information...
commit 39bd23c29ce8f44f56a313ebab4de5f4f666a405 1 parent e1af308
Peteris Krumins authored August 07, 2010

Showing 1 changed file with 14 additions and 0 deletions. Show diff stats Hide diff stats

  1. 14  tests/gif-async.js
14  tests/gif-async.js
... ...
@@ -0,0 +1,14 @@
  1
+var fs  = require('fs');
  2
+var sys = require('sys');
  3
+var Gif = require('gif').Gif;
  4
+var Buffer = require('buffer').Buffer;
  5
+
  6
+var terminal = fs.readFileSync('./terminal.rgb');
  7
+
  8
+var gif = new Gif(terminal, 720, 400, 'rgb');
  9
+
  10
+gif.encode(function (data) {
  11
+    fs.writeFileSync('./terminal-async.gif', data, 'binary');
  12
+});
  13
+
  14
+

0 notes on commit 39bd23c

Please sign in to comment.
Something went wrong with that request. Please try again.