O'Reilly logo

HTML5 and JavaScript Projects by Jeanine Meyer

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Building the application and making it your own

The project does one thing, draw the logo. A function, dologo, is defined for this purpose. Informally, the outline of the program is

1. init: initialization

2. dologo: draw the logo starting with the HTML letters and then the shield

3. changescale: change the scale

The function called and calling table shows the relationship of the functions. The dologo function is invoked when the document is first loaded and then whenever the scale is changed.

Image

The coding for the dologo function puts together the techniques previously described. In particular, the code brings back the original coordinate system ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required