Referencia pixels

pixels

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.

Ejemplos

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

Referencias Relacionadas