Grasshopper

algorithmic modeling for Rhino

Hello;

Is it possible to reverse the image sampler output values so that the black area is given value "1" and the white area is given value "0"?

Views: 335

Replies to This Discussion

Hi Zayad,

 

you can use the Remap Numbers Component (Math/Domain/RemapNumbers)

With this component you can define a new Range for a List of Numbers. If you set the Target Domain to

"1 To 0" all Numbers will be in the Range.

 

 

hope this helps

 

best

Christoph


Thank you Christoph and David. Now I have two ways to do it!.

Use a subtraction component that does:

 

1 - t

 

where t is the sampled value. Christophs solution is far more flexible but also a bit harder to understand.

 

--

David Rutten

david@mcneel.com

Poprad, Slovakia

RSS

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service