xxxxxxxxxx
19
function setup() {
createCanvas(400, 400);
background(220);
pixelDensity(1);
loadPixels();
print(pixels.length);
// why is pixels.length 640,000?
// it's 400 * 400 * 4
// width * height * [r,g,b,a] for each pixel
// pixel array is collapsed to one dimension
}