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


Referencias Relacionadas