- "connect the dots", remember me a little game i played when i was young...
- See also: http://pillow.readthedocs.org/en/3.1.x/reference/ImageDraw.html
- Draw a picture according to two lists: "first" and "second"
from PIL import Image, ImageDraw
picture = Image.new(mode='RGB', size=(500, 500), color=0)
draw = ImageDraw.Draw(picture)
draw.line(first, fill=(255, 255, 255), width=1)
draw.line(second, fill=(255, 255, 255), width=1)
del draw
picture.save("result.png")
- The result picture is like:- The answer is "bull"
沒有留言:
張貼留言