FADING:
|
ASSIGNMENT: Study the code for the JavaScript applet displayed to the left. Although you can't see them, you will likely be able to figure out that the canvas area is filled with a lot of small dots. How many are there altogether? The example shown below is created using a whole lot of lines. What would be the RGB values used to display the colors in the middle of the canvas area? Study the code to see how the applet works.:
Your job will be to create a 200x200 canvas area which is white in the center and which fades to red towards the top, green on the bottom, and yellow on either side. |