Gray Rectangles

There is one colored rectangle in each window, and possibly many gray rectangles.

  • Clicking moves the center of the colored rectangle to the mouse.
  • Hitting the space bar projects the shadow of the colored rectangle from the current window to gray rectangles in the other windows. (Same center, width, and height; different color.)
  • The shadow does not move when you click to move the colored rectangle.
  • Hitting space a second time replaces the old shadow of the colored rectangle with a new one.

Understanding

There are check-expects for all of the behavior described above.

Showing mastery (grade of A): add a modification to the code: hitting “d” or backspace ("\b") removes the shadows of the current world’s rectangle.

Demonstrations

There is a screen shot and a video link below.

Last modified August 18, 2023: 2022-2023 End State (7352e87)