Grasshopper

algorithmic modeling for Rhino

Colour range or domain - inverted gradient component

Hi

im trying to filter a list of colours into domains, and havent found a solution...

its basically, like the inverse of what the gradient component does: instead of inputing a collection of numbers, and them, choosing the colour depending on where they sit on the gradient, I have a collection of colours, and want to map them into the colours threshold.

any light?

Views: 8233

Replies to This Discussion

Hi all

Thanks for the help!!

I found a solution!!  :

grasshopper actually converts texts of the comom names (I guess, from rhino), such as red, blue, gray....

so, I just made a list of them, and used "find similar members", then, pick that correspondent item from the list.

As I want the list to be translated, I wrote another list with the same lenght, and replaced for other items (a, b, c, d), so, I get a filtered list.

This solves my issue, but, still, I think it would be great to have a sort of inverted gradient, component, where it could be possible to select the range of colours and replace for one item.

Thanks all!

Good for you.

I really don't get what you mean by "inverted" gradient... I think you're confused!

The gradient component takes a gradient, a domain and a number and outputs a color.

Inverting this would mean... what? input a color and a gradient, and retrieve a number? which number? the param corresponding to the closest color to the one I input?

Hey Fred

Yeah, exactly, sort of, you could choose a colour steps from a gradient view, sort of what there is in the gradient component, and, what is inside the defined:

maybe.. it is an alternative on how to filter colours, as it is a bit confusing (3 dimensions...)

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