The program now uses Opacity in ARGB format instead of black or white pixels. The text is now practically invisible.
7 lines
No EOL
229 B
Python
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))}") |