4cade/res/notes/transitions/iris.py
2019-06-18 14:56:05 -04:00

14 lines
350 B
Python
Executable File

#!/usr/bin/env python3
import sys
alphabet = 'MNOPQRSTUVWXYZABCDEFGHIJKL'
with open(sys.argv[1]) as f:
lines = f.readlines()
for c in alphabet:
for line, row in zip(lines, range(len(lines))):
for l, col in zip(line, range(len(line))):
if l == c:
print("%s,%s," % (row,col), end=' ')
print("255,255")