outaTiME

at devel days

Asciify: ASCII art library

leave a comment »

Asciify is a new library that draws ASCII art for you, so it had “Friday” written all over it:

There are trends on the web (as in real world) that last days or weeks and there are things that became a classic form of expression of the geek culture and are still interesting to explore after 20+ years.

Ascii Art is one of these things. If you don’t know what ascii art is you’re probably reading the wrong blog, however for the one or two that doesn’t know about it, here you can learn more about it: Ascii art on wikipedia.

I always had in mind the idea to create an actionscript class to render ascii art from pictures and now with as3 this is going to be possible at decent speed.

My class is called Asciify and it can actually “ascii-fy” every DisplayObject instance on the display list.

It is simple to use too:

JAVASCRIPT:

  1.  
  2. var asciifyInstance:Asciify=new Asciify(picture, textFormat, 16);
  3. addChild(asciifyInstance);
  4.  

Takes me back to my insanely cheesy .sig files from many years ago:

         \\|//
         (o o)
+----oOOo-(_)-oOOo--------------------------------------------------+
|   dionXalmaer.com   |               FREE TIBET *                  |
| www.almaer.com/dion | * with any tibet of equal or greater value  |
+-------------------------------------------------------------------+

(Via Ajaxian.)

Written by outaTiME

March 14, 2008 at 2:42 pm

Posted in ActionScript

Leave a Reply