Color Assessment for Curves/geometries by size (area?)

Is there way to assign color by using the size or length derived from these curves?? is this an option using rhino or should i use grasshopper??

thank you


pipeline to input the curves.
length to get curve length, you could also use area.
bounds to find the limits
deconstruct domain to find start and finish
Gradient to get a colour.
Custom preview to preview over the curves.