Skip to content

Instantly share code, notes, and snippets.

@adusak
Last active August 6, 2016 14:04
Show Gist options
  • Select an option

  • Save adusak/d1e05fb3fa674f53b205 to your computer and use it in GitHub Desktop.

Select an option

Save adusak/d1e05fb3fa674f53b205 to your computer and use it in GitHub Desktop.
Gradient - generates gradient
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