Skip to content

Instantly share code, notes, and snippets.

5 3 0
#####
#G.S#
#####
7 7 0
#######
#.#G.S#
#.#.#.#
#.#.#.#
#.#.###
@mrexcessive
mrexcessive / gist:1c22b23f04f9a3217d44
Last active April 26, 2022 08:11
Tupper Everything formulae in Python tested using .png created from GIMP. Expects no spaces in input data.
#!/usr/bin/python
#@mrexcessive
#this is based on java code from
# https://bitbucket.org/BJRowlett2/tuppers-formula/src/52fcf0b0ee94853e293a6f33e71ccd0c45a6e752/source/Tuppers.java?at=master
import sys,os
from PIL import Image
def GetNextFileName(fnamebase):