Show Your Code #9

Pick one of the following problems to do for your Show Your Code.

1. Bouncing Ball - Make an application that shows a ball bouncing. Use an AnimationTimer to perform the animation.

2. Scrolling Text - Make an application that will scroll a line of text across from right to left. Once it gets off the edge on the left it should repeat. Use an AnimationTimer to perform the animation.

3. Color Paint (keys) - For this I want you to write an application that "paints" when the mouse is clicked (if you want you can make it happen for dragging to). It can just draw a small rectangle or circle each time at the location of the mouse. The color it paints with will vary based on keys the user hits. You can decide what keys give what colors. For example, if the user hits the R key then it should start drawing in red.

4. Shape Painting (keys) - This is just like the previous problem except that instead of varying what color is painted, the user can change what shape is painted. At the very least you should have a square and a circle as options. So if the user hits S then the clicks draw squares. If they hit C it draws circles. Rectangles and ovals would be simple to implement as well, but aren't required.