change ctdo logo to white background
This commit is contained in:
parent
812394b611
commit
20ef7b4b2b
BIN
ctdo.png
BIN
ctdo.png
Binary file not shown.
Before Width: | Height: | Size: 8.0 KiB After Width: | Height: | Size: 8.2 KiB |
|
@ -33,7 +33,7 @@ def randomnumber(pseed,pmin,pmax,v1,v2,v3):
|
||||||
newseed=(int)(time.time()/60)
|
newseed=(int)(time.time()/60)
|
||||||
seed=newseed
|
seed=newseed
|
||||||
|
|
||||||
parts=4 #n users
|
parts=2 #n users
|
||||||
user=1 #1..n
|
user=1 #1..n
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
|
@ -60,8 +60,8 @@ if __name__ == '__main__':
|
||||||
|
|
||||||
#xv=random.randint(width/2,flutwidth-width/2)
|
#xv=random.randint(width/2,flutwidth-width/2)
|
||||||
#yv=random.randint(height/2,flutheight-height/2)
|
#yv=random.randint(height/2,flutheight-height/2)
|
||||||
xv=randomnumber(seed,width/2,flutwidth-width/2, 1234,-242,4)
|
xv=randomnumber(seed,width/2,flutwidth-width/2, 42,-24,4)
|
||||||
yv=randomnumber(seed,height/2,flutheight-height/2, 1423,-122,3)
|
yv=randomnumber(seed,height/2,flutheight-height/2, 43,-23,3)
|
||||||
print("xv="+str(xv)+ "yv="+str(yv))
|
print("xv="+str(xv)+ "yv="+str(yv))
|
||||||
_current_command=""
|
_current_command=""
|
||||||
|
|
||||||
|
@ -72,12 +72,13 @@ if __name__ == '__main__':
|
||||||
|
|
||||||
for i,j in pixelcoords:
|
for i,j in pixelcoords:
|
||||||
r, g, b,a = rgb_im.getpixel((i, j))
|
r, g, b,a = rgb_im.getpixel((i, j))
|
||||||
if a!=255:
|
if a<=127:
|
||||||
continue
|
continue
|
||||||
#if r>127:
|
#if r>127:
|
||||||
# continue #skip bright pixels
|
# continue #skip bright pixels
|
||||||
#r=255-r
|
#r=255-r
|
||||||
|
|
||||||
|
|
||||||
#_current_command+='PX %d %d %02x%02x%02x\n' % (i+xv,j+yv,r,g,b) #rgb
|
#_current_command+='PX %d %d %02x%02x%02x\n' % (i+xv,j+yv,r,g,b) #rgb
|
||||||
_current_command+='PX %d %d %02x\n' % (i+xv-width/2,j+yv-height/2,r) #monochrome only red channel
|
_current_command+='PX %d %d %02x\n' % (i+xv-width/2,j+yv-height/2,r) #monochrome only red channel
|
||||||
if len(_current_command)>=1400:
|
if len(_current_command)>=1400:
|
||||||
|
|
Loading…
Reference in New Issue