Call a given function repeatedly over the given grid
of grid
cols and rows
a function to be called for each cell. it'll be passed the pixel coords and grid coords.
Call a given function repeatedly over the given grid