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 | |
width = 512 | |
height = 512 | |
# Magic happens here | |
def getColor(x, y): | |
return (0, 0, 0) | |
# Create an image and load pixels |
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
def getColor(x, y): | |
return (random.randint(0, 1) ,)*3 |
NewerOlder