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 16:30
Monica and her team have implemented is successfully in an organization. what factor leads to successful is implementation? good between different departments in an organization leads to successful is implementation.
Answers: 1
question
Computers and Technology, 23.06.2019 22:20
If i uninstall nba 2k 19 from my ps4 will my career be gone forever?
Answers: 2
question
Computers and Technology, 24.06.2019 00:10
Read each statement below. if the statement describes a peer-to-peer network, put a p next to it. if the statement describes a server-based network, put an s next to it. p - peer-to-peer s - server-based
Answers: 1
question
Computers and Technology, 24.06.2019 13:00
Which best describes the condition under which the unicode output is the same as plain text ?
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
Mathematics, 26.03.2020 02:59
question
Mathematics, 26.03.2020 02:59
Questions on the website: 13722363