Fixed alpha handling, added noise

This commit is contained in:
jaseg 2014-03-10 00:31:05 +01:00
parent 97a0b8b171
commit 6503863333
2 changed files with 9 additions and 2 deletions

View file

@ -9,6 +9,7 @@ from collections import namedtuple, deque
import itertools
import threading
import random
import os
from ctypes import *
@ -160,7 +161,13 @@ if __name__ == '__main__':
elif userver.frame_da():
renderer = userver
else:
sendframe(next(defaulttexts))
static_noise = time() % 300 < 60
if static_noise:
foo = os.urandom(640)
frame = bytes([v for c in zip(list(foo), list(foo), list(foo)) for v in c ])
else:
frame = next(defaulttexts)
sendframe(frame)
#printframe(next(defaulttexts))
continue
for frame in renderer: