I need your help
I don’t know how to do that use the loop to change the color

I need your help
I don’t know how to do that use the loop to change the color

Do you have the positions calculated?
For color look a lerpColor command in the reference and use the variable of your for-loop