size(7.5cm); transform Tx=shift(2.25,0), T; for (int i=3; i <= 5; ++i) { draw(T*polygon(i)); draw(shift(0,-2.25)*T*polygon(i+3)); T *= Tx; }