Canvas pad

Now that we know the basics of the canvas API, let's use our newfound knowledge to create a drawing application called canvas pad. We'll start off with an application that draws black lines, like drawing with a pen on paper. Then we will add a toolbar and menus so that the user can change options such as width, opacity, color, and select different drawing tools.

Get HTML5 Web Application Development By Example Beginner's guide 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.