subject

Write a program to draw ghosts on the screen. You must do this by writing a function called draw_ghost, which takes three parameters, the x location of the ghost, the y location of the ghost and the color of the ghost. x and y for the ghost define where the center of the head should go. Note: Be sure to include comments for all functions that you use or create.

def draw_ghost(center_x, center_y, color):
Final Product
Here is a screenshot of a sample run of the ghosts program with these function calls.

center_x = get_width()/2
center_y = get_height()/2
draw_ghost(center_x, center_y, Color. red)
draw_ghost(100, 100, Color. green)
draw_ghost(370, 150, Color. black)
draw_ghost(40, 200, Color. orange)
draw_ghost(300, 50, Color. yellow)

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 23.06.2019 03:00
State 7 common key's for every keyboard
Answers: 1
question
Computers and Technology, 23.06.2019 03:30
Ihave a singular monitor that is a tv for my computer. recently, i took apart my computer and put it back together. when i put in the hdmi cord and booted the computer to see if it worked, the computer turned on fine but the screen was blue with "hdmi no signal." i've tried everything that doesn't require buying spare parts, any answer is appreciated!
Answers: 1
question
Computers and Technology, 23.06.2019 09:10
Effective character encoding requires standardized code. compatible browsers. common languages. identical operating systems.
Answers: 1
question
Computers and Technology, 23.06.2019 15:30
Brian wants to conduct an online search with a certain phrase. he intends to use the words books that belong to the 1800s in his search. how should he use the word that in his search?
Answers: 1
You know the right answer?
Write a program to draw ghosts on the screen. You must do this by writing a function called draw_gho...
Questions
question
History, 13.11.2020 19:20
question
Mathematics, 13.11.2020 19:20
question
Mathematics, 13.11.2020 19:20
Questions on the website: 13722360