[READ-ONLY] Mirror of https://github.com/ewanc26/text-to-pixel-image. docs.ewancroft.uk/projects/text-to-pixel-image
0

Configure Feed

Select the types of activity you want to include in your feed.

Python 81.8%
Other 18.2%
26 1 11

Clone this repository

https://git.vm.fail/ewancroft.uk/text-to-pixel-image https://git.vm.fail/did:plc:lpqwetujetkvcn3n64edmd3j
ssh://git@knot1.tangled.sh:2222/ewancroft.uk/text-to-pixel-image ssh://git@knot1.tangled.sh:2222/did:plc:lpqwetujetkvcn3n64edmd3j

For self-hosted knots, clone URLs may differ based on your setup.


README.md

text-to-pixel-image#

No Maintenance Intended

Turns text into a grid of coloured squares. Each character gets a random RGB colour.

Requirements#

  • Python 3.x
  • Pillow (pip install Pillow)

Usage#

  1. Make sure sorted_chars.json is in the same directory as the script. Run colour generator.py to generate a new colour set if needed.
  2. python main.py
  3. Enter the width and height (in pixels) for the output image
  4. Enter the string to convert
  5. Result is saved as output.png in the current directory

Licence#

MIT