subject

Create a program that draws a rectangle whenever you click the mouse. The rectangle should have a width of 30 and a height of 50 and be centered at the place where the user clicks. Remember, the position of a rectangle is the top left corner. To place the rectangle at the center of the click, you will need to adjust the position.

Bonus Challenge:

See if you can make the the color of the rectangle random!

for python coding

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 24.06.2019 11:00
Need fast im timed in a paragraph of 125 words, explain at least three ways that engineers explore possible solutions in their projects.
Answers: 2
question
Computers and Technology, 24.06.2019 16:00
Which of the following characters is acceptable to use in a filename? ? / – %
Answers: 1
question
Computers and Technology, 24.06.2019 18:00
Which of the following is an example of synchronous communication? a) e-mail b) voicemail c) telephone conversation d) text message.
Answers: 1
question
Computers and Technology, 24.06.2019 20:50
Which key function of a business involves finding, targeting, attracting, and connecting with the right customers?
Answers: 3
You know the right answer?
Create a program that draws a rectangle whenever you click the mouse. The rectangle should have a wi...
Questions
question
Mathematics, 23.09.2020 14:01
question
Mathematics, 23.09.2020 14:01
question
Mathematics, 23.09.2020 14:01
question
Mathematics, 23.09.2020 14:01
Questions on the website: 13722360