p5Image
p5Image, commonly referred to as p5.Image, is the image object used in the p5.js library. It represents an image stored in memory and provides both high-level drawing and low-level pixel access. A p5.Image can be created by calling createImage(width, height) to allocate a blank image, or by loading an image file with loadImage(path, callback). The loading operation is asynchronous, and the image object becomes available when the file has been read.
Pixel data are stored as a one-dimensional array in left-to-right, top-to-bottom order, with four consecutive values
p5.Image objects can be drawn to the canvas with the image() function, using the image's own width
In summary, p5.Image is the core in-memory representation of images in p5.js, enabling both display and fine-grained