I have some colors corresponding to points. How to render point clouds and set colors for each point

I’m confused. Can someone help me answer this question? How to set different colors for each point? I have not found a solution related to the class vtkColorTransferFunction