Friday, March 14th, 2008
Asciify: ASCII art library
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:
-
-
var asciifyInstance:Asciify=new Asciify(picture, textFormat, 16);
-
addChild(asciifyInstance);
-
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 |
+-------------------------------------------------------------------+













Do you really think that “sig” needed to be jested about? There are riots right, as we speak, where people are being beaten and possibly killed. I’m not trying to get on a soap box but trivializing the Tibet situation probably isn’t very conscientious.
As for the lib… Cool!
http://www.cafepress.com/buy/*+with+any+tibet+of+equal+or+greater+value+/-/pd_13630063?CMP=KNC-F-ALL
On a related note, there’s a cool Matrix ASCII animated sequence (elements shown/hidden via Javascript) here.
Free Tibet! ^_^
I think he was observing the need for a free tibet, while being humorous. Humor is one of the most persuasive argumentative techniques. :)
Can anyone think of a good reason why this couldn’t be used as part of a simple, automated, low bandwidth Captcha technology:
1 - Generate random text on the server, save text and identifier.
2 - Convert text to an image (using ImageMagick or similar).
3 - Convert image to ascii art (using asciify).
4 - Send ascii art to user, with hidden identifier for comparison upon submission.
I can see two problems:
1 - Reverse engineering back to real text may be too easy, although there will be information loss when converting initially. Extra difficulty could be created by adding an actual image behind the text before asciifying.
2 - Ascii art representing actual text may be difficult for a human to decypher , especially with an image behind it, so the ascii art may need to be quite large on the page.
And here’s a version built on top of web standards like HTML, CSS and JavaScript;
http://ajaxwidgets.com/Blogs/system_rss/ascii_art_generator_ajaxified.bb
And the actual generator;
http://ajaxwidgets.com/Ascii-Art/AsciiArt.aspx
And here’s one using js and the canvas tag to turn images into ascii art: http://www.nihilogic.dk/labs/jsascii/
Bad “signature”, don’t make fun with the serious TIBET situation!
Anyway, the library is so cool.
Nice find… I remember spending hours working on little pieces of Ascii art many years ago.
To see the entire Star Wars movie in Ascii Art:
telnet towel.blinkenlights.nl
!!
Wow… i never think it’s an application like this. It’s rock :-)
yuhirocks from india cialis
Didn’t think AVM2 could asciify a video in real time but I was wrong
Currently testing this technology in Antidepressant Online Pharmacies
project
Pretty cool, especially for image editor, great picture above, and this citrato de sildenafil
is great too