Code Snippet from the book:<<HTML5 Canvas>>