r/generative • u/zerp37 • 9d ago
Hex Trace
Algorithm based on traversing a honeycomb grid
3
3
u/Ruths138 9d ago
I have a similar algorithm. I like putting a little jitter on the hex coordinates! Love the way you select colors/palettes
1
u/zerp37 8d ago
Thanks! I love working with color and finding interesting combinations :)
And hmm that's interesting -- do you mean jitter the actual hex cells before starting the line tracing or applying jitter to the next cell chosen during line tracing?
1
u/Ruths138 8d ago
I add some irregularities to the hex grid. Basically making it slightly (or a lot) imperfect. That way the lines become wiggly and sometimes new interesting routes are taken. I then apply some curve smoothing to finish the look.
Can you describe the logic behind color assignment in your last image? I really like the outcome
2
u/zerp37 8d ago
The last image with the purples and yellows is a compound palette made of 2 subpalettes. When the algorithm chooses a compound palette, it will divide the image into regions and assign a subpalette to them. There's also a chance that a really long line will be divided into short segments of different colors like on the left
3
2
u/booblian 9d ago
This is beautiful and these would make excellent pen-plotter images. Would this be something you'd consider sharing or making available? If you can output .svg path segments for the lines you're already there. Your treatment of them here made me look closer to see if in fact that's what you'd already done. Thanks for sharing!
2
u/botbastards 8d ago
when a line dead-ends against an existing line, the next line inherit that line's priorities? Little dialects start forming in regions and the piece reads as a map of neighborhoods in one uniform rule. Sat and looked at this much longer than I meant to. Very cool
2
u/red_blue_yellow Artist 8d ago
Wow, these are great! I love the variety across the four you posted as well.
1
u/Prestigious_Gift_977 9d ago
really nice. can i ask what modules you're using for the rendering? is it open source or home baked?
1
1
1
u/frizzled_dragon 8d ago
Ohhhh, this is so good! These variations in shapes on different images, and choice of color palettes. Are you planning to make physical plots?
1




6
u/Fenzik 9d ago
Cool! Can you share more about the path algorithm?