You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
447 B
Python
18 lines
447 B
Python
from PIL import Image
|
|
|
|
# Open the image
|
|
image = Image.open('decal_shockwave.png')
|
|
|
|
# Get the image size
|
|
width, height = image.size
|
|
|
|
# Modify each pixel's RGBA value
|
|
for x in range(width):
|
|
for y in range(height):
|
|
r, g, b, a = image.getpixel((x, y))
|
|
# Modify the RGBA values here
|
|
# For example, invert the colors
|
|
image.putpixel((x, y), (255,255,255,r))
|
|
|
|
# Save the modified image
|
|
image.save('decal_shockwave.png') |