Created
April 29, 2022 02:47
-
-
Save Lubba-64/5cfe2a3f4eb59186fc9c05081072d448 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from PIL import Image | |
size = (1280,1280) | |
img = Image.new(mode='RGBA',size=size,color=(255,128,255,128)) | |
pixels = img.load() | |
for x in range(size[0]): | |
for y in range(size[1]): | |
z = (x+y) % 2 == 0 | |
pixels[x,y] = (0,0,0,0) if z else (255,255,255,51) | |
img.show() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment