An array containing the color of each pixel in the framebuffer.
myBuffer.loadPixels() must be called before accessing the myBuffer.pixels
array. myBuffer.updatePixels() must be called after any changes are made.
Note: Updating pixels via this property is slower than drawing to the framebuffer directly. Consider using a p5.Shader object instead of looping over myBuffer.pixels
.
उदाहरण
This page is generated from the comments in src/webgl/p5.Framebuffer.js . Please feel free to edit it and submit a pull request!