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
.
Examples
Related References
textToContours
Returns an array of arrays of points outlining a string of text written using the font.
textToModel
Converts text into a 3D model that can be rendered in WebGL mode.
textToPaths
Returns a flat array of path commands that describe the outlines of a string of text.
textToPoints
Returns an array of points outlining a string of text written using the font.