Hey all,
I’m trying to figure out how I’d go about displaying a group of objects in a non-overlapping cluster in a defined rectangular space. Excuse the crude mockup:

Basically if I have n objects (the blue rounded rects), and a defined width/height (the red rectangle), how would you go about plotting all these rectangles to look random (X/Y and scaling) but generally fit within that space without overlapping? Note: I won’t be rotating the rectangles and they will all be the same height. They can (and will) be scaled however, to fit within the red rectangle.
Going to start playing around in code with this tonight, but I thought I’d ask in case anyone has done something like this before or has some insight on how I should approach it. Thanks so much!