Is there a way to get a colour to match the colour of an adjacent mesh?

This not not exactly what your asking about, but maybe when he posts his tut it will leand ideas: Molecules | Blender Physics Simulation