Changing webcam-pixels to "nearest" color from color palette array

Yeah, like that!
This is my current lo-fi setup (from the angle of the camera) + my results with the code from my post above: