Sha256: b344690c246bc5f6aa465dc2f73486fdd83513e0f963087b4fe98762c467024e

Contents?: true

Size: 938 Bytes

Versions: 1

Compression:

Stored size: 938 Bytes

Contents

var sys = require('sys');
var asciimo = require('./lib/asciimo');
var colors = require('./lib/colors'); // add colors for fun

// pick the font file
var font = 'Sony.aol';
// set text we are going to turn into leet ascii art
var text = "hello";

asciimo.text(font, text, function(art){
  sys.puts(art.magenta);
  var anotherFont = 'Banner.flf';
  var moreText = "i turn text into leet ascii art";

  asciimo.text(anotherFont, moreText, function(art){
    sys.puts(art.red);
    var anotherFont = 'Colossal.flf';
    var moreText = "300+ fonts supported";

    asciimo.text(anotherFont, moreText, function(art){
      sys.puts(art.green);  
      var anotherFont = 'Tinker_Toy.flf';
      var moreText = "Marak Squires 2010";

      asciimo.text(anotherFont, moreText, function(art){
        sys.puts(art.yellow);  
        sys.puts('if you can\'t see the text try making your console larger'.red.underline)
      });

    });

  });

});

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
asciimo-0.1.0 ext/asciimo/node-demo.js