Gradient color line from length

curve
modeling
unhandled
lines

(Laffarguee) #1

Hello,

I looking to get a line which color change. For exemple, On the same line. The total length is 400 m. I would like to have 0>100 meters in green, then 100>300 meters in blue, then 300>400 meters in Red
The colors are define using the gradient tools and the length levels using number slider

Does someone could help me ?


(Aris Nikolopoulos) #2

I didn’t read it carefully and made it more complicated than needed.
at least you can use it for other cases as well :joy:
colours.gh (15.7 KB)


(Nils) #3

Colour_Line.gh (11.4 KB)

Im no GH-expert and i am sure there are more elegant ways but this should help you.


(Amir Touhidi) #4

just throwing this in here :wink: probably the simplest one.

line_color.gh (9.3 KB)