Question: Purpose: Familiarize yourself with some basic list syntax and usage. Degree of Difficulty: Moderate Let s have some fun with polkadots! You ll write a
Purpose: Familiarize yourself with some basic list syntax and usage.
Degree of Difficulty: Moderate
Lets have some fun with polkadots! Youll write a program where the user can click the mouse to place circles on the canvas, and with the press of a key, all of the circles will randomly change color.
Here is how your program should behave:
Start with an empty x canvas with a light grey background
When the user clicks the mouse: A new white circle appears where the mouse was clicked.
When the user presses the p key: All of the circles on the canvas change color to a random color!
It is okay if by random chance, a circle remains the same color as before.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
