I just began learning Blender Python API, not sure if what I am asking is possible. I want to write a script to distribute objects on the surface of a mesh based on RGB value of a generated texture. Similar or identical to the way Blender already does it with particles emission. To do that, I assume I need to have a way to get RGB value at all the points on the faces of the mesh.
If that fails, what about just the vertices colors?