You might say: "But Tudor... Why?? Why would you do that??? Why would you break a perfectly fine script??" Well, I had to do a Uni project using GAs, so I thought I'd add them here.
The README will be updated soon.
P.S.: U can find the old script if you scrape the repo's history. I promise it's short xd.
- Set width and height of the font
- Choose a grayscale ramp
- Upload an image
- Convert it to grayscale
- Select tiles (of font's width x height) from the image
- Compute the average brightness of each tile
- Map the brightnessof each tile to a character from the ramp
- Concatenate the characters to form the ASCII art
Requirements:
- Python
- PIL
Run the script with the following command:
python asciiart.py "path/to/image"Have fun!
This project is licensed under the terms of the MIT license. See the LICENSE file.
