Reference loadPixels()

loadPixels()

Loads the current value of each pixel on the canvas into the pixels array.

loadPixels() must be called before reading from or writing to pixels.

Examples

Notice any errors or typos? Please let us know. Please feel free to edit src/image/pixels.js and open a pull request!

Related References