레퍼런스 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.

예제

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

관련 레퍼런스