Grasshopper

algorithmic modeling for Rhino

I have a project Ive been thinking about, and I'm not really sure where to start.

Essentially I want to use rhino and grasshopper to map at least series of 100 hexadecimal values to a single plane.

Think of a standard color picker with marked values.  

Once I get the basic framework set up I want to add some flair with grasshopper.

Does anyone have any tips on where to start or even if this is possible from within rhino?  I'm at a loss.

Thanks.

Views: 1483

Attachments:

Replies to This Discussion

First you have to convert the hex values into rgb values for GH to understand them as color information.

You can do this by using a vb component with the following line "a = ColorTranslator.FromHtml(x)", where x is a list of color hex values.

Then you have to decide what color information to map and how to map it. In a 2D plane the easiest way (but not the only one) is to map 2 variables, one on the x axis and another in the y axis.

In the following image I arrange the colors by hue in the x axis and brightness in the y axis:

 

 

 

Vicente, Thank you for this. Can you share the vb component for converting hex values to RGB? I cannot have it work for some reason. Thank you very much!

Never mind, fixed it. Thank you!

Wow, there are so many grasshopper functions I'm not even aware of.

Thanks so much, that looks like a great starting point.  I'll piece it together and see what happens.

Thanks again.

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