Problems passing an array to a function for 2d interpolation

And indeed it proves easy enough. One wrinkle is that I think I have my values typed in back-asswards or confusing the axes, since I'm not getting the right values out: probably reading say cell (3,4) when I should be at (4,3). But I daresay I'll figure that out.

Next step is an RGB led to produce the colour.