from PIL import Image, ImageDraw
def draw_dove():
# Create a blank white image
img = Image.new("RGB", (400, 400), "white")
draw = ImageDraw.Draw(img)
# Drawing an abstract dove shape using ellipses and lines
# Dove body
draw.ellipse((100, 200, 300, 300), fill="gray", outline="black")
# Dove head
draw.ellipse((230, 150, 270, 190), fill="gray", outline="black")
# Dove wings (abstract representation)
draw.ellipse((50, 100, 200, 200), fill="lightgray", outline="black")
draw.ellipse((200, 100, 350, 200), fill="lightgray", outline="black")
# Dove beak (small triangle)
draw.polygon([(260, 170), (280, 160), (260, 150)], fill="orange")
# Dove tail (simple triangle)
draw.polygon([(150, 275), (200, 325), (250, 275)], fill="gray", outline="black")
# Show the image
img.show()
# Create and display the dove image
draw_dove()
Click Run or press shift + ENTER to run code