Grasshopper

algorithmic modeling for Rhino

Hi everyone.

I want to create a halftone pattern like in the image below.

As inputs I imagine using a grid of points and assigning a value to each point to control the amount of black/white.

What I ultimately want to do is to control the pattern (on a facade) and decide which areas are white (transparent) and which are black (opaque). The final output will be a vector-drawing of the pattern.


Does anyone know how to go about this? I guess the tricky part is the gray-zone were the pattern shifts from black to white dots.


Thanks!

/Mårten

Views: 4867

Replies to This Discussion

You could use the intersection of a pair of 2D scalar fields where one is some sine surface, and the height of the other is how black/white you want it to be.

The same thing works one dimension up too ;)
Attachments:
that's sick! (in a good way)
Hey Dan,

Me thinks your number of sampling points in the u direction for the interpolated surfaces wants to be 31 (not 101). Otherwise the file throws some errors.

Looks like you were having too much fun and dialed it back a bit...

Cool beans though!
Awesome! Thanks a lot Dan.
I also tried creating the second surface by lofting some curves instead and it works really well too! (BTW, really funky preview there! Is that custom shaders in GH or a mix with baked geometry?)
Always great to get a reply from you! Many thanks.
Thanks guys.
Marten - yeah, it's baked geometry
Taz - I did indeed have the U points set to 101 initially, but then I replaced it with an addition component (original grid size + 1). Strange that it sounds like somehow when you are opening the file it is retaining its old values. I wonder if this is some sort of bug or version issue.
Yeah, I ignored the IO warnings, but now looking at the errors 0.6.0059 kicked [Addition] out (for some reason).

The first error is the one to watch for I suppose. Lesson learned.

Hey guys,

 

I see this is an old discussion but I'm quite interested in the definition shown here. Does anyone have an updated version of this halftone pattern definition?

 

Thanks a lot!

 

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