11 comments

[ 1.5 ms ] story [ 40.4 ms ] thread
Check out libcaca[1], a image-to-ASCII library that already available as a mplayer and VLC output.

There's also a demoscene competition where entries can only use text-mode art, TMDC [2]

[1] https://en.wikipedia.org/wiki/Libcaca [2] http://tmdc.scene.org/

Wow, ascii + demo scene. Two of my favorite things and I never knew the combo existed!

https://www.youtube.com/watch?v=c5kPMdYIbvI

You might've posted a different video than you thought. At least, there's no ascii art (or video) in that at all.
Also aalib. Cool demos such as aafire.

https://en.wikipedia.org/wiki/AAlib

ffmpeg and mplayer support aalib and/or libcaca, so you can watch your favorite movie in ascii art, if you wish so (you can find lot of examples on youtube, though I couldn't fine one worth sharing)
Is there a good way to display these in a terminal? The result is a little ugly because it ends up vertically stretched.
I'm sure there's a cleaner way to do this, but this'll take input in the form of the "stretched" ASCII art and double up the characters. My fixed-width font is half as wide as tall, so it works out.

To read from a file "filename":

print("".join([a+a for a in open("filename").read()]).replace('\n\n','\n'))

To read from stdin:

import sys

print("".join([a+a for a in sys.stdin.read()]).replace('\n\n','\n'))

Is there one that can do matrix digital rain like effects?