Visualisation - two colours in one straight line?

Hi!
During watching this video (https://youtu.be/HEYYl0M3ynk) 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!!


Gradient_1re.gh (8.3 KB)

1 Like

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


Gradient_3re.gh (9.2 KB)

2 Likes

wow super great, thanks a lot!!