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

Syntax

loadPixels()

Parameters


Related References