Make window facade

I need help how to rotate this squares to reflect as windows of a building

I want it to look like this:


FACADE.gh (8.6 KB)

Fyi,


FACADE.gh (15.9 KB)