HTML5′s canvas Part II: Pixel Manipulation
February 9th, 2010
16 comments
In an earlier post, I wrote about a few of the things HTML5‘s <canvas> element could do. This post is about one more of them: direct pixel manipulation. You can basically do the three following things:
- Create an array of empty pixels, or
- Get an array of pixels from an existing canvas, or
- Set the pixels of a canvas from a pixel array