Last active
August 6, 2016 14:04
-
-
Save adusak/d1e05fb3fa674f53b205 to your computer and use it in GitHub Desktop.
Gradient - generates gradient
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 | |
| def generate_gradient(): | |
| im = Image.new("RGB", (255, 255)) | |
| for x in range(255): | |
| for y in range(255): | |
| im.putpixel((x, y), (x, 0, y)) | |
| im.show() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment