HTML5 Canvas For Dummies by Don Cowan
HTML5 Canvas For Dummies Published by
John Wiley & Sons, Inc.
111 River St.
Hoboken, NJ 07030-5774 www.wiley.com Copyright 2013 by John Wiley & Sons, Inc., Hoboken, New Jersey Published by John Wiley & Sons, Inc., Hoboken, New Jersey Published simultaneously in Canada No part of this publication may be reproduced, stored in a retrieval system or transmitted in any form or by any means, electronic, mechanical, photocopying, recording, scanning or otherwise, except as permitted under Sections 107 or 108 of the 1976 United States Copyright Act, without either the prior written permission of the Publisher, or authorization through payment of the appropriate per-copy fee to the Copyright Clearance Center, 222 Rosewood Drive, Danvers, MA 01923, (978) 750-8400, fax (978) 646-8600. Requests to the Publisher for permission should be addressed to the Permissions Department, John Wiley & Sons, Inc., 111 River Street, Hoboken, NJ 07030, (201) 748-6011, fax (201) 748-6008, or online at http://www.wiley.com/go/permissions. Trademarks: Wiley, the Wiley logo, For Dummies, the Dummies Man logo, A Reference for the Rest of Us!, The Dummies Way, Dummies Daily, The Fun and Easy Way, Dummies.com, Making Everything Easier, and related trade dress are trademarks or registered trademarks of John Wiley & Sons, Inc. and/or its affiliates in the United States and other countries, and may not be used without written permission. All other trademarks are the property of their respective owners. is not associated with any product or vendor mentioned in this book. is not associated with any product or vendor mentioned in this book.
Limit of Liability/Disclaimer of Warranty: The publisher and the author make no representations or warranties with respect to the accuracy or completeness of the contents of this work and specifically disclaim all warranties, including without limitation warranties of fitness for a particular purpose. No warranty may be created or extended by sales or promotional materials. The advice and strategies contained herein may not be suitable for every situation. This work is sold with the understanding that the publisher is not engaged in rendering legal, accounting, or other professional services. If professional assistance is required, the services of a competent professional person should be sought. Neither the publisher nor the author shall be liable for damages arising herefrom.
The fact that an organization or Website is referred to in this work as a citation and/or a potential source of further information does not mean that the author or the publisher endorses the information the organization or Website may provide or recommendations it may make. Further, readers should be aware that Internet Websites listed in this work may have changed or disappeared between when this work was written and when it is read. For general information on our other products and services, please contact our Customer Care Department within the U.S. at 877-762-2974, outside the U.S. at 317-572-3993, or fax 317-572-4002. For technical support, please visit www.wiley.com/techsupport .
Wiley publishes in a variety of print and electronic formats and by print-on-demand. Some material included with standard print versions of this book may not be included in e-books or in print-on-demand. If this book refers to media such as a CD or DVD that is not included in the version you purchased, you may download this material at http://booksupport.wiley.com . For more information about Wiley products, visit www.wiley.com . Library of Congress Control Number is available from the publisher. ISBN 978-1-118-38535-7 (pbk); ISBN 978-1-118-41747-8 (ebk); ISBN 978-1-118-42082-9 (ebk); 978-1-118-45964-5 (ebk) Manufactured in the United States of America 10 9 8 7 6 5 4 3 2 1 About the Author Don Cowan is a software designer, developer, and author with a history of pioneering work in a number of computing and mobile technologies, including programming languages, database systems, software architecture, graphics, and user interface.
Hes currently focused on developing software and writing books on the latest mobile and web platforms including Android, HTML5, and graphics capabilities such as HTML5 Canvas. As a developer and project manager at AT&T, Don worked on software and telecommunications systems all over the world including Brazil, the Netherlands, Germany, Japan, and South Africa. Don also has a fine arts and graphics background. His paintings, etchings, and prints have sold around the world. Don is a founding member of marketimpacts.com
and is currently its Director of Software Engineering. He earned his Bachelors degree in Mathematics from Northwestern University and Masters degree in Computer Science from the University of Illinois.
Follow Don on Twitter (@ donkcowan
) or read his blog at www.donkcowan.com/blog
. Dedication To my daughter, Alana, and son, David, for their encouragement, support, and understanding. I love you both. To my life partner, Christie Harrison, for her help and patience during the many months of my focus on this book. Youre the best and I love you. To our dog, Daisy.
On top of her usual duties as our best friend, she performed beautifully as model and actress for two book chapters. And I love you, too. To the Wiley team of editors for their patience and skill. Our collaboration was a high point in my life. Authors Acknowledgments Thanks to my agent, Carole Jelen, for discovering this opportunity and believing in me. Youre a true professional.
Thanks to Wiley Acquisitions Editor Katie Feltman for giving me the chance to take on this exciting project. You were a huge help throughout the development and writing process. Thanks to Wiley Senior Project Editor Kim Darosett, who is at the center of the action and makes sense of it all. Without you, I would have been lost in the woods. Thanks to Wiley Copy Editor Debbye Butler who has managed to make a tech guy look like a polished author. Magic.
Thanks to Wiley Technical Editor Kelly Francis who has the eagle eyes to spot my errors and suggest just the right improvements. Youre the best. Thanks to Wiley Project Coordinator Patrick Redmond. All the pieces came together smoothly. You did a great job. Thanks to Jack Fuller, a successful author and friend who took the time to lend his support and share his expertise.
Youre my author hero. Thanks to Wayne Smith, a fellow techie and friend who gave just the right advice. Thanks to David Highland, a friend and very smart guy who gave the right help at the right times. And finally, thanks to all the relatives and friends who encouraged and supported me. You gave me hope during all those hours hunched over my keyboard. Publishers Acknowledgments Were proud of this book; please send us your comments at http://dummies.custhelp.com .
For other comments, please contact our Customer Care Department within the U.S. at 877-762-2974, outside the U.S. at 317-572-3993, or fax 317-572-4002. Some of the people who helped bring this book to market include the following: Acquisitions and Editorial Senior Project Editor: Kim Darosett Senior Acquisitions Editor: Katie Feltman Copy Editor: Debbye Butler Technical Editor: McClellan C. Francis Editorial Manager: Leah Michael Editorial Assistant: Leslie Saxman Sr. Editorial Assistant: Cherie Case Cover Photo: merrymoonmary / iStockphoto Cartoons: Rich Tennant ( www.the5thwave.com ) Composition Services Project Coordinator: Patrick Redmond Layout and Graphics: Carl Byers, Jennifer Creasey, Joyce Haughey Proofreader: Sossity R.