![]() |
Hexerei: a thousand-word picture |
Hexerei is a colorful software package for Python (and optionally a web server) that assigns a color value to each word or letter in a database. Hexerei then utilizes the PIL to convert produce an image consisting of color blocks which correspond to the given text. Thus, "a thousand words" become a picture! Also included is a script that I created to help produce XHTML documents on-the-fly with Python as it is interpreted for a web server. Simple text documents are used to store encountered words and letters and to maintain a list of statistics. Created images are stored locally, and a script is included which empties the storage folder and resets the site statistics. I have provided sourcecode access in HTML format for anyone to view. As all the important functions are in a few scripts and run by another script, it is simple for users to import the code and run it from a command line or interpreter. An implementation of this software may be found at the following address: |
|