Change the color of a small piece of surface on a surface

Suppose I want to achieve a spray effect, given a surface, and I want to change the color of a small part of the surface, how do I do that?