text-to-pixel-image#
Turns text into a grid of coloured squares. Each character gets a random RGB colour.
Requirements#
- Python 3.x
- Pillow (
pip install Pillow)
Usage#
- Make sure
sorted_chars.jsonis in the same directory as the script. Runcolour generator.pyto generate a new colour set if needed. python main.py- Enter the width and height (in pixels) for the output image
- Enter the string to convert
- Result is saved as
output.pngin the current directory
Licence#
MIT