This small component colors a mesh based on a list of points and a list of colours. The component will find the closest vertex or face to the input points and then apply the color from the color list.
The color list must contain one color value, or the same amount of values as there are points (basically, one color for one point OR one color for the entire mesh.
You can use the Gradient component in Grasshopper to generate a list of colors for the input.
Installation: Drag and drop to canvas or place in components folder.