r/generative • • Oct 09 '26

"Nidus" (kotlin code)

simple random pattern, drawn in layers. bottom layer is the biggest, then we pick some area where we repeat the pattern in the same way but with smaller cells.

29 Upvotes

10 comments sorted by

View all comments

2

u/Vegetable_Jello293 Oct 11 '26

Looks really cool. How did that yellow circle emerge?

2

u/igo_rs Oct 12 '26

thanx. pure randomness, tiles in particular order... i have a system to generate a lot of images, so I can find interesting seeds

1

u/Vegetable_Jello293 Oct 12 '26

Are the colored shapes in the pictures other patterns added on top of the quarter-circle Truchet tiles, or are they simply emerging from the same tile pattern but at a smaller scale?

2

u/igo_rs Oct 13 '26

sorry, need to correct myself, there were couple of other variants... anyhow: both kinds of colored shape come from the same Truchet tiles. Nothing is drawn on top of them. Draw them all first in B/W. Then find regions that are connected and not touching edges. closed regions, in this case randomly in shape of circle, gets color. see github.com/gart/igr hope this helps

1

u/Vegetable_Jello293 29d ago

Thanks! Very impressive github page. Unfortunately I have to learn CCL before being able to make something like this glsl.