Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 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);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement