Visualisation - two colours in one straight line?

During watching this video ( on youtube, I got curious about how students made this colour gradation
attached screen shot here :

Because normal colour gradient component in grasshopper make a single colour in one straight line. The only method that I know is to divide curve into several points and make gradient on each point, but it couldn’t render same as this image. It seems simple but have no idea how to do it.

Can anyone advise me how to do it?
Thanks in advance!! (8.3 KB)

1 Like

thanks for reply!! would it be possible like this? for example, starts red colour and ends blue. (9.2 KB)


wow super great, thanks a lot!!