diff --git a/python/munching.py b/python/munching.py new file mode 100755 index 0000000000000000000000000000000000000000..3a783dbd9d02b4f0c31f46824fc04f1ab1fa846b --- /dev/null +++ b/python/munching.py @@ -0,0 +1,23 @@ +#!/usr/bin/python +import client +import random +import time +import clearscreen + +if __name__=="__main__": + t = 0 + s = 64 + pixels = [0] * client.HEIGHT * client.WIDTH + clearscreen.clear() + while True: + if t == 63: + time.sleep(1) + t = (t+1) % 64 + for x in range(client.WIDTH): + for y in range(client.HEIGHT): + #pixels[s * x + y] = 0 if (y == (x^t)) else 1 + pixels[s * x + y] = 0 if ((x&y&t)) else 255 + client.blit(0, 0, client.WIDTH, client.HEIGHT, pixels) + print t + #time.sleep(0.09) +