Graphic Java

The student should take a close look at the applet displayed on this page. The student will notice that the color is pure red on the left side and it gradually changes to pure green on the right side. This is done by decrementing the R-value and incrementing the G-value in the Color constuctor twenty-five times and drawing a ten unit wide rectangle for each shade of this gradient.

The student should consider what the gradient would look like if the transition from red to green were done in one-hundred steps instead of just twenty-five.
EXAMPLE: The student will create an applet like the one shown here. This activity provides the student with practice creating custom colors.
x

ASSIGNMENT:
Recreate the applet shown above. The student may not use any pre-defined colors in this activity.