CHAPTER 13
Adding Canvases
Want to draw shapes, lines, and words on your web pages, and add selected parts of images into the mix as well? The new HTML5 canvas enables you to combine all of these things. Canvases give you capabilities that previously you had to use your image editor for. This chapter teaches you how to set up a canvas and then draw on it using JavaScript code.
Understanding Canvases
The <canvas> tag enables you to define a blank drawing area on your web ...
Get Teach Yourself Visually™ HTML5 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.