Provide the code so I can copy it properly and add some screenshots along with it Create
Fantastic news! We've Found the answer you've been seeking!
Question:
Provide the code so I can copy it properly and add some screenshots along with it
Create a box containing the following features, making sure they all function both separately and together. For a better understanding, view the gifs and directions.
A mouse's right button click will produce random moving points of various colors traveling diagonally in any direction at random. As an illustration, if a point is produced at (0,0), it may move to (1,1), (-1,1), (-1, -1), and so forth. The right button click in the box should be used to spawn the points, and the movement's color and direction should be chosen at random.
- The speed of all points generated thus far can be changed by pressing the "up arrow" key on the keyboard or the "down arrow" key on the keyboard.
- A mouse's left button click causes the points to blink, meaning that if a point is red, it will change to the background color (in this case, black), then return to red. This transition should happen quickly while the transition cycle is running.
- All of the points should freeze when you press the "Spacebar" key on your keyboard; at this time, none of the aforementioned functionalities should function. The identical "Spacebar" ought to defrost them.
Related Book For
Income Tax Fundamentals 2013
ISBN: 9781285586618
31st Edition
Authors: Gerald E. Whittenburg, Martha Altus Buller, Steven L Gill
Posted Date: