Graphic JavaScript


Back to index
Stop Staring

Your browser does not support the HTML5 canvas tag.

ASSIGNMENT:

Make the following alterations to the sample program:

  1. Make the eyes bloodshot
  2. Change the yellow circle into a red X
  3. Create a second pair of eyes beneath the first pair of eyes
  4. Either shrink the eyes or increase the size of the canvas to accommodate the extra eyes
  5. Make sure each pupil points in the direction of the red X when the location of the red X is changed
  6. Suggest a way to fix the problem with the red X being placed within the white portion of the canvas