Grab the pixels from a canvas' context, be it 2D or 3D, and return them in an array.