Skip to content

Latest commit

 

History

History
52 lines (44 loc) · 2.36 KB

README.md

File metadata and controls

52 lines (44 loc) · 2.36 KB

ascii-factory

ascii-factory is a Python program that takes an image file and converts it to ASCII art (as best as it can). Just a fun project that I wanted to try out. Will be returning to periodically as I can.

The program will also tell you the average Red, Green, and Blue values in the image as well as the average color in the entire image. Might be helpful for some.

Dependencies

PIL (Python Imaging Library)

Usage

Very simple. Enter a filename, then hit enter. Then enter a value for the width and height to be scaled down by, keep it tight. Watch as it turns to ASCII art before you.

Example

Passing in the github.jpg provided in the repo and using an x scale of 10 and a y scale of 20, we receive this beautiful output:

........................................................
........................................................
........................................................
........................................................
.......................-#########%......................
..................####################:.................
...............##########################i..............
.............###############################............
...........##################################%..........
..........#######......#........'#......#######.........
.........########.......................########........
........#########.......................########'.......
........########.........................########.......
.......I#######...........................#######.......
.......########...........................#######.......
.......########...........................#######.......
........########........................%########.......
........#########.......................#########.......
.........##########..................`##########........
.........%####..%#######........%##############.........
...........#####..#####..........-############..........
............:####.................##########............
..............-########...........########..............
.................######..........%#####%................
.....................%#...........#`....................
........................................................
........................................................
........................................................

State of the art, I know.