Skip to content

Instantly share code, notes, and snippets.

@lufeihaidao
Created April 13, 2014 15:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lufeihaidao/10589325 to your computer and use it in GitHub Desktop.
Save lufeihaidao/10589325 to your computer and use it in GitHub Desktop.
Q9 of python challenge
from PIL import Image, ImageDraw
img = Image.new("RGB",(640,480), 'white')
draw = ImageDraw.Draw(img)
draw.polygon(first_list, 'black')
draw.polygon(second_list, 'grey')
img.show()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment