Overview
This lab will allow you to practice creating applications that interact with mouse input.
Assignment
Duplicate the functionality of the applet at the link below:
Powered Flower
- When you hover the mouse over a button, the flower's petals must change to the same color as the button.
- The x,y coordinates for the buttons must be in either a one-dimensional or two-dimensional array (your choice)
- You may use any colors you like.
- You must create (at least) the following methods that will be called from within draw(): drawFlower().
Grading
You will be graded on whether or not your program works as specified in the assignment, the readability of your code, and the correctness of your output. You may use any API Objects or calls that you like.
|