UI Deploy

Curated, Short, Web UI Dev we Love.

HTML5 Canvas: Pixel Manipulation

It is possible to get access to the individual pixels of an HTML5 canvas. You do so using an ImageData object. The ImageData object contains an array of pixels. By accessing this array you can manipulate the pixels. When you are done with the pixel manipulation, you need to copy the pixels onto a canvas to display them.

view source

Advertisement