Change color(spread) based on hit location

Thank you for answering but I believe my explanation with the loop caused misunderstandings. I am sorry.

What I meant is that effect on the material of a single cube.
As if there was a drop of water falling on top of it and the “waves” (color) propagate through it.

I edited the post to avoid further confusions