Grasshopper

algorithmic modeling for Rhino

Is it possible to use grasshopper gradients in C#? Is there a data structure for this?

I have an array of values within domain that are remapped from 0 to 255 in C#.

Is there any possibility to take this value and evaluate what color it is in a gradient?

(For intance I would like to a have a gradient within 3 colors just like grasshopper green,yellow, red gradient is like)

Views: 1917

Replies to This Discussion

See attached!

Attachments:

Thank you:)

Hi Panda,

i was just trying to do this without making it a custom function to can use it in vs.

My attempt so far is:

May you help me to adapt it?

Thanks and regards!

file:

Attachments:

file

Attachments:

You should set the colors of gradient first!

Hi Panda,

sorry for the late reply.

That works perfect!

Have a nice week.

Regards!

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