From 94f1ab5e21844b9228848c3d915b0eff94db42b8 Mon Sep 17 00:00:00 2001 From: Fisch Date: Sat, 31 Mar 2018 12:10:00 +0200 Subject: [PATCH] Initial commit --- ctdo.png | Bin 0 -> 8174 bytes eh18-image.py | 46 ++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 46 insertions(+) create mode 100644 ctdo.png create mode 100644 eh18-image.py diff --git a/ctdo.png b/ctdo.png new file mode 100644 index 0000000000000000000000000000000000000000..3a9881266fc7458949b4d6dd5b88d050589d4d07 GIT binary patch literal 8174 zcmVPx#AY({UO#lFTCIA3{ga82g0001h=l}q9FaQARU;qF* zm;eA5aGbhPJOBUy0%A)?L;(MXkIcUS000SaNLh0L01ejw01ejxLMWSf0017sNklFV` zpT{d!@pIMs3Ra6RJR+3}g0F~D8UZ1shzK+S!3ZG`LLea|khjTX*7HYphI7tLhM6;y zoC)N2{z&$mbJp2st+V%DYwfky*61D3NF$3}1~YX7BC;1vWawlul+oll%qE5I2K3i-}BP0>jC~6DPV}>e){TU$T{NI7FM%FB*)*5{O17`CP&@&SNO) z-T0(N4zP{S*}yL96R9&x6oF{uGKH(Slmaq)tX4ujr4+G>FQ`cju_S^(a+u5vrc*$Q zLp5ljltMmb6SYn=!&!lNIEU-Gj`5^MahIP~T4}5Zd9N-{FXrzf2T4_h{BY=jEMiL%U zNv9uK7(hxyPddyRmQu)JXV~I|Kr}{i1Gh8rq}o#p)qG0{+xV9K)NmZ1 zjpw;YXCR|ElW|PoEb>S`$sJy{@)qy0x97)|o)(DCIo!t0oEf$=@p6EFuz^jKQB6}E zpP$MQ3b=qNoX;@aVXpL3#yc!xdm>vcu|a1XPq7aPa~$If{=jvNj+^Zf8g52&BhOGw zL)iN4<0-~PH4^m_Xyo%ad&7!iJ+rui0X^7iHL{q-qZD&2OwIQ4IQa>okH!so%%lu| z7ccDPYo28~nU2*ji|_IWcF@*E4gHiclRT%{7$2l_E5-P_c-1;S%w=B}t+|P%T-^HY&F;`BkiqN_RV?G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py @@ -0,0 +1,46 @@ +import socket +import random +import time +from PIL import Image + +TCP_IP = '94.45.232.48' +TCP_PORT = 1234 +BUFFER_SIZE = 4096 + +flutwidth = 1920 +flutheight = 1080 + +width=200 +height=200 + +s = socket.socket(socket.AF_INET, socket.SOCK_STREAM) +s.connect((TCP_IP, TCP_PORT)) + +c = '000000' + +im = Image.open("ctdo.png") +rgb_im = im.convert('RGB') + + +if __name__ == '__main__': + for a in range(100000): + #xv=random.randint(0,flutwidth) + #yv=random.randint(0,flutheight) + xv=flutwidth-width/2 + yv=height/2 + for i in range(width): + pixel_x=i-width/2+xv + for j in range(height): + pixel_y=j-height/2+yv + #v1=hex(random.randint(0,255))[2:] + #c=v1+v1+v1 + r, g, b = rgb_im.getpixel((i, j)) + + + #c=hex(r)+hex(g)+hex(b) + #c=hex(r) + #s.send("PX {0} {1} {2}\n".format(pixel_x, pixel_y, c)) + s.send( ('PX %d %d %02x%02x%02x\n' % (pixel_x,pixel_y,r,g,b)).encode()) + print(".") + +exit()