HTML5 Canvas is an exciting new browser capability that allows the display of text, objects, images, video and animation on designated areas of a web page, all without the use of additional plug-ins. Canvas areas are specified using the HTML <canvas> tag and JavaScript is used to control the Canvas area display.
This book covers all the basics needed to design and develop your own Canvas displays.
________________________________
Examples
Please note: clicking on a link below will download the example code to your computer. You can then click the downloaded file to access the example web page. There are also links to view the examples directly on a web page. The numbers indicate the book chapter and code listing. The book contains detailed explanations and tutorials for each example.
0306 Drawing with Transparency (click here to view on a web page)
0401 Drawing Multi Sided Shapes (click here to view on a web page)
0404 Drawing Rounded Corners (click here to view on a web page)
0405 Drawing a Bezier Curve (click here to view on a web page)
0406 Drawing a Quadratic Curve (click here to view on a web page)
0407 Drawing a Multi Segment Curve (click here to view on a web page)
0501 Translating Position (click here to view on a web page)
0504 Rotating a Bezier Curve (click here to view on a web page)
0601 Drawing a Moving Circle (click here to view on a web page)
0602 Creating Circular Motion (click here to view on a web page)
0603 Creating Oscillating Elliptical Motion (click here to view on a web page)
0604 Movement with Real World Effects (click here to view on a web page)
0701 Resizing and Scaling the Canvas (click here to view on a web page)
1001 Displaying an Audio Player (click here to view on a web page)
1101 Displaying a Video Player (click here to view on a web page)
BC01 Ballpark Game (click here to view on a web page) (click here for Gaming chapter download)
________________________________
Other Materials
Click here for additional downloads.
Click here for an HTML5 Canvas Cheat Sheet.
_______________________________
Search the Book by Keyword
Click here to search the book by keyword or topic.
_______________________________
Table of Contents Summary
Introduction
Part I: Looking at Canvas
Chapter 1: A Quick Glimpse Behind the Canvas
Chapter 2: Setting Up Your Canvas Platform
Part II: Drawing on Canvas
Chapter 3: Creating Objects
Chapter 4: Enhancing Objects
Chapter 5: Transforming Objects
Chapter 6: Moving Objects
Part III: Breathing Life into Your Canvas
Chapter 7: Mastering the Art of Canvas
Chapter 8: Introducing User Interaction
Chapter 9: Creating Engaging Imagery and Motion
Chapter 10: Sounding Off with Audio
Part IV: Developing More Complex Applications
Chapter 11: Grabbing Attention with Video
Chapter 12: Enhancing Canvas Applications
Chapter BC: Gaming on Canvas (Bonus Chapter Download)
Part V: The Part of Tens
Chapter 13: Ten Great Canvas Applications
Chapter 14: Ten Great Tools