# Allison Obourn
# CS 115, Autumn 2021
# Lecture 37

# This file contains a module with functions (just one for now) for drawing
# animals. This file cannot be run on its own as no functions are called.
# instead, import it into another file where you want to call its functions.

BIRD_WIDTH = 60
BIRD_HEIGHT = 80

# draws a bright purple bird with slightly darker purple wings and a yellow beak
# The bird faces forward and its left side is at the passed in x position on
# on the passed in panel.
def bird(panel, x):
    # all birds currently have the same y position
    y = 50
    panel.fill_oval(x + 5, y, BIRD_WIDTH - 10, BIRD_HEIGHT, "#990099") # body
    panel.fill_oval(x + 40, y + 25, 20, 40, "#770077")                 # wing
    panel.fill_oval(x, y + 25, 20, 40, "#770077")                      # wing
    panel.fill_oval(x + 20, y + 10, 5, 5, "black")                     # eye
    panel.fill_oval(x + 35, y + 10, 5, 5, "black")                     # eye
    panel.fill_rect(x + 28, y + 18, 4, 8, "#eecc00")                   # beak
