Grasshopper

algorithmic modeling for Rhino

Is it possible to assign multiple colors to one polyline curve?

I am working on a script that generates an ever changing set of coordinates for a point then using kangaroo's trail component I am creating a polyline of the points motion through space.  I would like to apply a gradient to the line so that I can keep track of time with the baked object and create more trail lines and study where they are crossing each other in time based on the color of the polyline.  If any one could help me do this I would be much obliged?  I have attached the script for your reference

Thank you for your time,
Sam

Views: 1117

Attachments:

Replies to This Discussion

You can shatter the polyline into many segments of the same length and apply a different color to each segment following a gradient.

You can also create a pipe out of the polyline, having cross-section vertices at equidistant intervals and adding vertex colors to the mesh (each row of vertices should have the same color).

You can do both these options without using any plugins.

RSS

About

Translate

Search

Photos

  • Add Photos
  • View All

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service