HYPE using getNextPoint()
int numAssets = 100;
HGridLayout layout;
void setup() {
size(640,640);
H.init(this).background(#202020);
smooth();
layout = new HGridLayout();
layout.startX(25).startY(25).spacing(25,25).cols(10);
for (int i = 0; i < numAssets; ++i) {
PVector pt = new PVector();
pt = layout.getNextPoint();
rect(pt.x, pt.y, 24, 24);
}
}
Comments