How to generate a series of points and change colors

As shown in the figure, I want to generate a series of points in the line interval that can change color. How can I do this
point

There are multiple ways of changing the color of something :slight_smile: It would help to know how you are generating these points. Are they textures? A Node Material?