Have a personal or library account? Click to login
HTML5 Canvas Cookbook Cover

HTML5 Canvas Cookbook

Over 80 recipes to revolutionize the Web experience with HTML5 Canvas

Paid access
|Dec 2011
Product purchase options

Over 80 recipes to revolutionize the Web experience with HTML5 Canvas

Key Features

  • The quickest way to get up to speed with HTML5 Canvas application and game development
  • Create stunning 3D visualizations and games without Flash
  • Written in a modern, unobtrusive, and objected oriented JavaScript style so that the code can be reused in your own applications.
  • Part of Packt's Cookbook series: Each recipe is a carefully organized sequence of instructions to complete the task as efficiently as possible

Book Description

The HTML5 canvas is revolutionizing graphics and visualizations on the Web. Powered by JavaScript, the HTML5 Canvas API enables web developers to create visualizations and animations right in the browser without Flash. Although the HTML5 Canvas is quickly becoming the standard for online graphics and interactivity, many developers fail to exercise all of the features that this powerful technology has to offer.The HTML5 Canvas Cookbook begins by covering the basics of the HTML5 Canvas API and then progresses by providing advanced techniques for handling features not directly supported by the API such as animation and canvas interactivity. It winds up by providing detailed templates for a few of the most common HTML5 canvas applications—data visualization, game development, and 3D modeling. It will acquaint you with interesting topics such as fractals, animation, physics, color models, and matrix mathematics.

By the end of this book, you will have a solid understanding of the HTML5 Canvas API and a toolbox of techniques for creating any type of HTML5 Canvas application, limited only by the extent of your imagination.

What you will learn

  • Learn about the fundamentals of line drawing, text drawing, shape drawing, composites, and picture drawing.
  • Work with images, video, and pixel manipulation.
  • Apply transformation effects including translations, scaling, rotations, and shearing.
  • Animate linear motions, accelerations, and oscillations, and create a particle physics simulator.
  • Extend the HTML5 Canvas API to support shape event handling for desktop and mobile applications.
  • Construct data visualizations with graphs and charts.
  • Develop your own HTML5 canvas games.
  • Create stunning 3D visualizations with WebGL.

Who this book is for

This book is geared towards web developers who are familiar with HTML and JavaScript. It is written for both beginners and seasoned HTML5 developers with a good working knowledge of JavaScript.

Table of Contents

    PDF ISBN: 978-1-84969-137-6
    Publisher: Packt Publishing Limited
    Copyright owner: © 2011 Packt Publishing Limited
    Publication date: 2011
    Language: English
    Pages: 348