Skip to content

Commit

Permalink
added a test for js that generates a gif image from terminal.rgb
Browse files Browse the repository at this point in the history
  • Loading branch information
pkrumins committed Jul 27, 2010
1 parent d308647 commit ca82b18
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions tests/gif.js
@@ -0,0 +1,11 @@
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').encode();

fs.writeFileSync('./terminal.gif', gif, 'binary');

0 comments on commit ca82b18

Please sign in to comment.