Browse Source

Fix opacity stuff

main
root 2 years ago
parent
commit
006e37c8a0
  1. 2
      igel.py
  2. 1
      pixelflut.py

2
igel.py

@ -6,6 +6,6 @@ import numpy as np
def igel():
igel = ["aussagend", "fickend", "friedlich-neu", "liebend", "niedlich", "panisch-neu", "peinlich", "schlafend", "unzufrieden", "wissend"]
name = np.random.choice(igel)
return f'/opt/docker/nextcloud-dockerized/html/data/maya/files/Bilder/===\ Freizeit\ ===/Kunst/Zeichnungen/Igel/{name}.png'
return f'/opt/docker/nextcloud-dockerized/html/data/maya/files/Bilder/=== Freizeit ===/Kunst/Zeichnungen/Igel/{name}.png'
return im

1
pixelflut.py

@ -61,6 +61,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:
if pixels[h-starth][w-startw][3] == 0: continue
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"))

Loading…
Cancel
Save