your_face.py (5 points)
Draw a face using turtle. For example, you can draw the look of disapproval!
Requirements
- you can draw whatever face you like
- but you have to use the turtle module
- change the size of the pen
- set the window size to 400 x 400
- turn animation off (for sanity's sake)
- create a function called draw_face … it's up to you to decide if it should have parameters or not (it's ok if you don't parametrize it, but it may be helpful for extra credit)
- your function will draw a face
- use at least one circle
- use at least one line
- remember to call update at the end of your function to let Python know to repaint the screen
- call your function at the end of your program
Extra Credit
5 points (warning: this is one may be a little frustrating depending on how complicated your drawing is!)
- ask the user for comma separated input that specifies how to draw the face… with each value representing x, y and size respectively
- for example, 0,0,20 means draw the face at (0, 0) with size 20
- size can mean whatever you like…
- using the string method, split, break up the input, and use each individual value to draw the face
- continue to ask for input, with each new input drawing another face
- hints:
- how do you keep the relationship between all of the parts of the face in proportion?
- setheading might be helpful
- see the example below: