Graphic JavaScript


Back to index
GRAY HEXAGONS:
Your browser does not support the HTML5 canvas tag.
ASSIGNMENT:

Carefully inspect the code for the applet displayed to the left. A round off error must be compensated for in the code. This is done by adjusting the variable called radius. See if you can figure out where and why this must be done.

Your job will be to make two changes to this applet:

  1. Add another layer of hexagons
  2. Instead of fading from light gray to dark gray, your design should fade from dark green to light green.