howl.moe

(no title)

Published (click to see context) on 07/07/2022 by Morgan Bazalgette • 1 minute

today’s pet project: a tcell-based go program which can turn a stream of 2x2 matrices from stdin into a terminal visualization.

sample python program:

import time
i = 0
while True:
    i = (i + 1) % 30
    box = [[1 if (colNum - rowNum) % 30 == i else 0 for colNum in range(0, 90)] for rowNum in range(0, 13)]
    print(box, flush=True)
    time.sleep(0.02)