Home > Programming & scripting, Python > Python function for creating “ASCII-art”

Python function for creating “ASCII-art”

December 27th, 2006

Just threw together a little function to produce “ASCII-art” from a BMP-file using the BMPDecoder class I posted about earlier today to give an example of what you can do with it.
It can of course be improved a lot, but I probably won’t (so feel free to do it yourself).
Since this module uses the BMPDecode module, you of course need it for it to work.

Download:
Download the python module here (without BMPDecode)
tar.gz archive containing this module + BMPDecode
zip archive containing this module + BMPDecode

You can see an example of the output here:
ASCII art of my kitten

Resized image of the browser displaying the output:
kitten

(Yes, I’m aware of the fact that normal ASCII-art does not use colors, but just ASCII-characters to produce pictures that way)

buffi Programming & scripting, Python

  1. Peter Estelle
    January 20th, 2008 at 03:53 | #1

    I would love to try this, but the download links seem broken (404 error).

  1. No trackbacks yet.