Descriere
This book continues my exploration of HTML5. My approach in developing the projectswas to combine features such as canvas and video, attempt more intricate drawing byusing mathematics, and use standard programming techniques such as object-orientedprogramming and separation of content and logic. I was also interested in buildingapplications combining HTML5 and JavaScript with other technologies, includingGoogle Maps.Each chapter in the book is focused on an application or set of related applications.This is because my experience as a teacher and a learner has shown that conceptsand mechanics are best understood in the context of actual use. The applications startoff with drawing the HTML5 official logo. As you will find out in Chapter 1, the way Ideveloped this application prompted use of coordinate transformations.The project in Chapter 2, involving a family collage, was inspired by my growingfamily and the desire to teach about object-oriented programming. It is a goodapplication for you to use as a foundation to create your own, with your own photosand objects of your own invention. Chapter 3, which shows how to create a bouncingvideo, was built on other two-dimensional applications I have created, and features twodifferent ways to combine canvas and video.Chapters 4 and 5 demonstrate use of the Google Maps API (ApplicationProgramming Interface), a powerful facility that allows you to incorporate accessto Google Maps as part of your own projects. Chapter 4 presents a user interfacecombining map and canvas and includes a custom-designed cursor and the use of alpha(transparency) in drawing paths. The map quiz in Chapter 5 demonstrates the use ofmapping as a portal to media. The application shows you how to separate content andlogic so you can scale up to various applications (e.g., a tour of a region or a geographyquiz with many locations).Chapter 6 features a game called Add to 15, which turned out to be an excellentexample of arrays. It also demonstrated the necessity to prepare for bad behavior on thepart of players.