Graphic JavaScript


Back to index
ARRAY OF SQUARES:
Your browser does not support the HTML5 canvas tag.
ASSIGNMENT:

The code used to generate the example to the left is extremely straight forward and easily comprehensible. The only slight trick is keeping track of the values generated by the nested loops.

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

  1. Create a 12x12 array of shapes
  2. Instead of squares, display circles
  3. Make each row a different color