I have here a special case, where I don’t have any idea, how to achieve it.
In short, I would like to do something like False Rectangle Packing by @laurent_delrieu (Great by the way!). But instead of drawing new rectangles, I would like to join pre-existing tiles in bigger squares ( but predefined sizes, like 2tiles x 2tiles , 3tiles x 3tiles , 4tiles x 4tiles).
I now that the answer lies in connectivity trees ( like from sandbox ) . But I am not sure, how to setup conditions for different sizes.
I tried it with anemone, and would love to solve it in python ( not a must ).
I hope you could understand my problem.
Thanks in advance!
the second image is edited with photoshop. I hope it clarifies my intention.