Created
March 14, 2015 14:11
-
-
Save adusak/07c68f8557f0e2914e09 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.save("../../portfolio/less1/gradient.png") | |
| im.show() | |
| generate_gradient() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment