Graphic JavaScript


Back to index
DIAGONAL STARZ:
Your browser does not support the HTML5 canvas tag.
ASSIGNMENT:

The key thing you'll want to use from the applet displayed to the left is the function which makes individual stars. Other than that, the main feat you will be expected to accomplish is the elimination of most of the stars, but...

Your job will be to make the following changes to this applet:

  1. Make two diagonal lines of stars. One from the top-right to the bottom-left and the other from the top-left to the bottom-right
  2. Make one line of stars one color and the other another color
  3. You may use only one for-loop in your applet