Skip to content
ISBN: 0132761610
ISBN13: 9780132761611

Core HTML5 Canvas: Graphics, Animation, and Game Development

$6.69List Price: $59.99
Save $53.30!
ISBN: 0132761610
ISBN13: 9780132761611
Formats

Conditions

A read copy that remains in clean condition.

Formats

Conditions

A read copy that remains in clean condition.

See all 1 editionsfrom $6.69

Book Overview

One of HTML5's most exciting features, Canvas provides a powerful 2D graphics API that lets you implement everything from word processors to video games. In Core HTML5 Canvas , best-selling author David Geary presents a code-fueled, no-nonsense deep dive into that API, covering everything you need to know to implement rich and consistent web applications that run on a wide variety of operating systems and devices. Succinctly and clearly written, this book examines dozens of real-world uses of the Canvas API, such as interactively drawing and manipulating shapes, saving and restoring the drawing surface to temporarily draw shapes and text, and implementing text controls. You'll see how to keep your applications responsive with web workers when you filter images, how to implement smooth animations, and how to create layered, 3D scrolling backgrounds with parallax. In addition, you'll see how to implement video games with extensive coverage of sprites, physics, collision detection, and the implementation of a game engine and an industrial-strength pinball game. The book concludes by showing you how to implement Canvas-based controls that you can use in any HTML5 application and how to use Canvas on mobile devices, including iOS5. This authoritative Canvas reference covers The canvas element--using it with other HTML elements, handling events, printing a canvas, and using offscreen canvases Shapes--drawing, dragging, erasing, and editing lines, arcs, circles, curves, and polygons; using shadows, gradients, and patterns Text--drawing, positioning, setting font properties; building text controls Images--drawing, scaling, clipping, processing, and animating Animations--creating smooth, efficient, and portable animations Sprites--implementing animated objects that have painters and behaviors Physics--modeling physical systems (falling bodies, pendulums, and projectiles), and implementing tweening for nonlinear motion and animation Collision detection--advanced techniques, clearly explained Game development--all aspects of game development, such as time-based motion and high score support, implemented in a game engine Custom controls--infrastructure for implementing custom controls; implementing progress bars, sliders, and an image panner Mobile applications--fitting Canvas apps on a mobile screen, using media queries, handling touch events, and specifying iOS5 artifacts, such as app icons Throughout the book, Geary discusses high-quality, reusable code to help professional developers learn everything they really need to know, with no unnecessary verbiage. All of the book's code and live demonstrations of key techniques are available at corehtml5canvas.com. This description may be from another edition of this product.
Format:
Paperback
Language:
English
ISBN:
0132761610
ISBN13:
9780132761611
Release Date:
January 2012
Publisher:
Prentice Hall PTR
Length:
723 Pages
Weight:
2.10 lbs.
Dimensions:
9.0″ × 1.0″ × 7.0″
ComputersComputers & TechnologyJavaScript

More by David Geary

Customer Reviews

1 customer rating | 1 review
Write a Review

Good to get off the ground quickly

I already have a site that uses HTML5, and it is fairly primitive. I am just dabbling with different options and short functions. So, this book came just at the right time, and the examples on the designated site help to understand what the book is trying to imply. You do not want to overdo it and have the animation distract from the message. However, some people gauge your knowledge of the message by the sophistication of the presentation. This is the language of the day, and even if you do not apply it, you should be aware of how it works and recognize it in others’ sights. It may take some time to go through the book. If you know what you are looking for, you can skip parts. I, on the other hand, am going from front to back and adjusting as I go. Just a quick note for iOS users, this was designed around iOS 5, and at the time of this review, we are at iOS 26 is out. I expect that Informit-dot-com will make any corrections needed. FYI - Apple is changing the naming convention for its operating systems. Instead of being numbered by how many versions each has had, they are now named based on the year. So we have iOS 26 coming to this year’s iPhones, and macOS Tahoe 26 for Apple’s computers. iPadOS 26, watchOS 26, tvOS 26, and visionOS 26 complete the set

0