Click to move the ball to your mouse. Press the space key to toggle the grid. Remix: Without adding ANY sprites: A) When the a key is pressed, have the ball go to random location on the rainbow line. B) When the b key is pressed, make the ball go to a random location inside the rainbow square. C) Make the ball change color if its center is right of the rainbow line. D) Make the ball change color if its center is inside the rainbow square. (5) E) Make the arrow keys move the rainbow square. F) Change your code so the ball still interacts with rainbow square as in parts B and D
The rainbow line at the x coordinate of 200. Mathematically, x=200. The corners of the rainbow square include x: 0 y:0 and x:100 y:100. Mathematically, the corners are (0,0), (0,100), (100,100), and (100,0).