A simple texture-aware ASCII art generator. Named after Ena Shinonome from Project Sekai.
- Python 3.?
- PIL
genFont.py
: reads a specified font and stores images of characters inassets\fontpic\
genPic.py inputImage [width]
: resizes an image file (optional) and make an ascii art, storing intooutput\
- convert images of glyphs into gray level matrices, elements ranging from 0 (black) to 255 (white)
- slice
inputImage
into integral parts (after resizing and negating, if necessary) and convert it into a matrix too - treat aforementioned matrices as vectors, calculate dot product character-wise and accept the glyph with highest score
Sample Image | Convert Result |
---|---|
![]() |
![]() |
- using be5invis/Iosevka with
fontSize=16
- resized from 640x640 to 1280x1281
- Sample image: https://www.pixiv.net/en/artworks/101652094