Skip to content

Instantly share code, notes, and snippets.

@idling-mind
Created July 29, 2020 12:41
Show Gist options
  • Save idling-mind/cc467f93ebee41f314e0de885be7c53f to your computer and use it in GitHub Desktop.
Save idling-mind/cc467f93ebee41f314e0de885be7c53f to your computer and use it in GitHub Desktop.
Drawing basic circle in PIL
from PIL import Image, ImageDraw
img = Image.new("RGB", (500, 500))
ic = ImageDraw.Draw(img)
ic.ellipse([0, 0, 500, 500], fill="RED")
img.save("basic.png")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment