Skip to content

Instantly share code, notes, and snippets.

@Lubba-64
Created April 29, 2022 02:47
Show Gist options
  • Save Lubba-64/5cfe2a3f4eb59186fc9c05081072d448 to your computer and use it in GitHub Desktop.
Save Lubba-64/5cfe2a3f4eb59186fc9c05081072d448 to your computer and use it in GitHub Desktop.
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