mirror of
https://github.com/ewanc26/text-to-pixel-image.git
synced 2026-07-21 15:33:22 +00:00
Mirror of github.com/ewanc26/text-to-pixel-image
- Python 100%
| json | ||
| .gitattributes | ||
| .gitignore | ||
| AGENTS.md | ||
| colour generator.py | ||
| LICENCE | ||
| main.py | ||
| README.md | ||
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