I want to code a visualazation that places rectangles on a screen, in a way that is estheticaly pleasing, according to certain simple rules: