Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Please answer as soon as possible using python as the programming language and explain what you did in detail. - design *one* set of cartoon
Please answer as soon as possible using python as the programming language and explain what you did in detail.
- design *one* set of cartoon eyes, *one* cartoon mouth, and *one* cartoon hat - separately test each function using code you write but do not include with your submission Your submission for this assignment: - must be a source code file with filename 'comp1405_w23_\#\#\#\#\#\#\#\#\#_assignment_08.py' - must use the pygame.draw functions (and not, for instance, the Surface "blit" method) - must implement the functions "draw_eyes", "draw_mouth", and "draw_hat" specified below" The function "draw_eyes" takes no arguments and has no returns. This function draws cartoon eyes on the surface named "win_sfc" and as though they were being drawn on a circle centered at position (150,250). The eyes must be drawn using at least the colours black and white, and the outline should be black. The function "draw_hat" takes no arguments and returns exactly one string. This function draws a cartoon hat (your choice of style) on the surface named "win_sfc" and as though it was being drawn on a circle centered at (250, 350). The function must use at least three colours, the outline should be black, and the string returned should desribe the "type" of hat in lowercase letters (e.g., "top hat", "baseball cap", etc.) The function "draw_mouth" takes two integer arguments - x and y - and has no returns. This function draws a cartoon mouth on the surface named "win_sfc" and as though it was being drawn on a circle that was centered at the position ( x,y). The mouth must be drawn using at least the colours black, white, and red, and the outline should be black. 1 Please note that overly simplistic designs (e.g., two circle eyes, a single arc mouth, etc.) will incur significant penalties. 2 Any submissions that does not contain at least these three specified functions will receive a mark of zero
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started