Shush/Tests.py
Zaponium 59d1ff6aca Changed reading and writing type
The program now uses Opacity in ARGB format instead of black or white pixels. The text is now practically invisible.
2023-12-10 19:33:22 +01:00

7 lines
No EOL
229 B
Python

from PIL import Image
img = Image.open("Main/input/car.jpg").convert("RGBA")
print (f"{img.getpixel((10,10))}")
print (f"{img.getpixel((10,10))[1]}")
img.putpixel((10,10), (255, 255, 255, 200))
print (f"{img.getpixel((10,10))}")