Let's continue making our coding around PIL. Let's start with some basic drawing: a circle
this is the image produced
*If you use jupyter notebook, just write img at the end to see the output.
from PIL import Image, ImageDraw img = Image.new("RGB",(60,60),'white') dr = ImageDraw.Draw(img) dr.ellipse((0,0,60,60),'yellow') img.show()
this is the image produced
*If you use jupyter notebook, just write img at the end to see the output.
Comments
Post a Comment