Summary

Canvas makes it possible to play around with pixel data directly. Although this is a feature that isn’t used often, it can be useful for a number of different circumstances in which you need pixel-perfect collisions or Canvas post-processing. However, be careful with how much per-pixel processing you use because many mobile devices are lighter on CPU horsepower than their desktop cousins, and you must be careful not to overload them.

Get Professional HTML5 Mobile Game Development now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.