Reference loadPixels()

loadPixels()

Loads the current value of each pixel in the image into the img.pixels array.

img.loadPixels() must be called before reading or modifying pixel values.

Examples

This page is generated from the comments in src/image/p5.Image.js . Please feel free to edit it and submit a pull request!

Related References