Skip to content

Instantly share code, notes, and snippets.

@adusak
Created March 14, 2015 14:11
Show Gist options
  • Select an option

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

Select an option

Save adusak/07c68f8557f0e2914e09 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.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