diff --git a/cat.py b/cat.py index d41ee41..9c51f5b 100755 --- a/cat.py +++ b/cat.py @@ -16,3 +16,4 @@ def cat(w, h): if __name__ == "__main__": cat = cat(1920,1080) cat.show() + diff --git a/pixelflut.py b/pixelflut.py index 8593b7d..565c2bc 100755 --- a/pixelflut.py +++ b/pixelflut.py @@ -57,7 +57,7 @@ with socket.socket(socket.AF_INET, socket.SOCK_STREAM) as sock: for w in widthlist: if rnd: np.random.shuffle(heightlist) for h in heightlist: - color = '#%02x%02x%02x' % pixels[h-starth][w-startw] + color = '#%02x%02x%02x' % pixels[h-starth][w-startw][0:3] to_send = "px {} {} {}\n".format(w,h,color) sock.sendall(bytes(to_send, "utf-8")) sock.close()