according to the p5js reference, using getpixels is much faster than .get, however it's much more verbose and difficult to use