SHARE
TWEET

Untitled

a guest Feb 23rd, 2019 52 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. from PIL import Image, ImageDraw
  2. help(ImageDraw)
  3.  
  4. name = 'ILYA'
  5. image = Image.new('RGB', (220, 75), (0, 0, 0))
  6. draw = ImageDraw.Draw(image)
  7.  
  8.  
  9. draw.arc((0, 0, 50, 20), start=315, end=225, fill=(200, 0, 0))
  10. draw.arc((0, 55, 50, 75), start=135, end=405, fill=(0, 200, 0))
  11. draw.line((25, 20, 25, 55), fill=(100, 200, 100), width=15)
  12.  
  13. draw.ellipse((60, 0, 75, 15), fill=(0, 50, 100))
  14. draw.ellipse((60, 15, 75, 30), fill=(50, 100, 150))
  15. draw.ellipse((60, 30, 75, 45), fill=(100, 150, 200))
  16. draw.ellipse((60, 45, 75, 60), fill=(150, 200, 250))
  17. draw.ellipse((60, 60, 75, 75), fill=(200, 250, 255))
  18.  
  19. image.save('res.jpg')
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top