JavaScript Graphics

Back to index


Your browser is broken ASSIGNMENT:
Study the code for the applet shown to the left carefully. Although you can render the letters in your project individually with the aid of non-embedded for-loops, it would be to your advantage to use the technique demonstrated here.

You will create a wider canvas so that you can render three copies of your initials. (Make sure your instructor knows which letters you will be rendering before you begin coding. There may be some cases where the instructor alters the assignment, depending on several possible factors.)

By way of example, let's say that your name is Cathy Veronica Thompson. Your initials would be CVT and you would create a display that is arranged like this:

CVT CVT CVT However, if your name happens to be Tommy Troy Thompson, the requirements would be altered for you since TTT would be way to easy and you deserve more of a challenge!