Last active
February 9, 2018 23:23
-
-
Save stevenroh/329687b7a4575d9567449c8cb2d73c09 to your computer and use it in GitHub Desktop.
mosaic_extract
This file contains hidden or 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 | |
im = Image.open("mosaic.png") | |
width, height = im.size | |
pixels = im.load() | |
for x in range(50, width, 100): | |
for y in range(50, height, 100): | |
pixel = pixels[x, y][2] | |
print chr(pixel), |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment