subject

PLEASE HELP DRAW GHOSTS USING PYTHON CODE

# Constants for body HEAD_RADIUS = 35 BODY_WIDTH = HEAD_RADIUS * 2 BODY_HEIGHT = 60 NUM_FEET = 3 FOOT_RADIUS = (BODY_WIDTH) / (NUM_FEET * 2) # Constants for eyes PUPIL_RADIUS = 4 PUPIL_LEFT_OFFSET = 8 PUPIL_RIGHT_OFFSET = 20 EYE_RADIUS = 10 EYE_OFFSET = 14 # Put your function(s) here def draw_body(center_x, center_y, color): # your code here pass def draw_head(center_x, center_y, color): pass def draw_eyes(center_x, center_y): pass def draw_pupils(center_x, center_y): pass def draw_feet(center_x, center_y, color): pass # main function that generates each ghost, one piece at a time def draw_ghost(center_x, center_y, color): draw_body(center_x, center_y, color) draw_head(center_x, center_y, color) draw_eyes(center_x, center_y) draw_pupils(center_x, center_y) draw_feet(center_x, center_y, color)

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 23.06.2019 10:50
The volume v and paper surface area a of a conical paper cup are given by where r is the radius of the base of the cone and h is the height of the cone. a. by eliminating h, obtain the expression for a as a function of r and v. b. create a user-de ned function that accepts r as the only argument and computes a for a given value of v. declare v to be global within the function. c. for v ! 10 in.3 , use the function with the fminbnd function to compute the value of r that minimizes the area a. what is the corresponding value of the height h? investigate the sensitivity of the solution by plotting v versus r. how much can r vary about its optimal value before the area increases 10 percent above its minimum value?
Answers: 1
question
Computers and Technology, 24.06.2019 14:30
Two students are discussing electricity that has a frequency of 60 hz. student a says that this type of electricity is referred to as ac. student b says that in this type of electricity, the electrons flow in only one direction. which of the following statements is correct? a. only student a is correct b. only student b is correct c. both of the two students are correct d. neither of the two students is correct
Answers: 1
question
Computers and Technology, 25.06.2019 01:30
If the average computer chip had 1,200 transistors per square inch in 1970, approximately how many transistors per square inch would one have in 1976? use moore's law to calculate your answer
Answers: 1
question
Computers and Technology, 25.06.2019 08:00
True or false: a power supply is an electrical transformer that regulates the electricity used by the computer.
Answers: 1
You know the right answer?
PLEASE HELP DRAW GHOSTS USING PYTHON CODE

# Constants for body HEAD_RADIUS = 35 BODY_WI...
Questions
question
Chemistry, 10.09.2021 20:00
question
Mathematics, 10.09.2021 20:00
question
Spanish, 10.09.2021 20:00
question
Mathematics, 10.09.2021 20:00
Questions on the website: 13722363