Summary

You now know more about using the API for the canvas element, including how to use 2-D canvas to the full extent of its capabilities, including the peculiarities of the pixel dimensions along with the different rendering capabilities of the 2-D context. You also saw the variety of vector drawing capabilities of canvas along with how to set up gradient and patterns fills. Finally, you learned how to use canvas effects such as shadow and composition effects.

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.