Sha256: 2109c8ba6d33602bc8b8a91ffc9284c712185e23d210dfbc07b14078bff237a7
Contents?: true
Size: 2 KB
Versions: 1
Compression:
Stored size: 2 KB
Contents
/* asciimo - node-demo.js Copyright (c) 2010 Marak Squires Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ var sys = require('sys'); var asciimo = require('./lib/asciimo').Figlet; var colors = require('./lib/colors'); // add colors for fun // pick the font file var font = 'banner'; // set text we are writeing to turn into leet ascii art var text = "hello, i am asciimo"; asciimo.write(text, font, function(art){ sys.puts(art.magenta); var anotherFont = 'binary'; var moreText = "i turn text into leet ascii art ^_^."; asciimo.write(moreText, anotherFont, function(art){ sys.puts(art.red); var anotherFont = 'Colossal'; var moreText = "400+ fonts supported"; asciimo.write(moreText, anotherFont, function(art){ sys.puts(art.green); var anotherFont = 'tinker-toy'; var moreText = "Marak Squires 2010"; asciimo.write(moreText, anotherFont, 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.2.0 | ext/asciimo/node-demo.js |