alpha value: with zero lines the display is fully transparent, and as the number of lines increases toward the maximum, the color becomes darker. Complexity is represented by color, determined by the total number of conditional or loop statements (if, switch, while, for). When this total exceeds ten, the color is red; when it is greater than five, the color is yellow; otherwise, it is green.
v a : 1. Blue b a r a t the top with your n a me. 2. A grid a t the center. Use MouseListener to a llow the user to click on a squ a re a nd ch a nge the color to yellow 3. The f ive buttons on the bottom. Only “Cle a r" need to work. Ignore the others. 4. The gr a y-box over the grid with the sliders c a n be ignored. Do not a dd it a t this moment. 28
[email protected] Fall 2025 Copyright. These slides can only be used as study material for the class CSC305 at Cal Poly. They cannot be distributed or used for another purpose.