This script has the sole purpose of combining wordle results with the Milk Edinburgh meme.
I made this for @stormgrass because he mentioned he wanted something like this in this Tweet. Partly because I wanted to tinker around with this idea and party because I enjoy his Podcast so much and wanted to make him happy with a little something.
You need a working Python installation for this to work. Only the Pillow library is needed and can be installed via
pip install -r requirements.txt
You can use any TrueType font you like. Either alter the script to your path or copy the corresponding .ttf-file into the main directory next to the script. I used Roboto-Regular which you can download from here.
python wordle.py "Wordle 216 4/6
⬜🟩🟩⬜⬜
🟩🟩🟩⬜⬜
🟨⬜⬜🟨⬜
🟩🟩🟩🟩🟩"
If that doesn't work for you some reason you can also save the result in a file and pipe it like this:
python wordle.py "$(cat result-example.txt)"
The output image is stored as wordle.png in this directory (and overwritten without confirmation so be careful!).
Twitter Emojis for the boxes are taken from Twemoji.
Robot Font which is under Apache License, Version 2.0