grid
Copies in rows and columns, filling this layer's bounding box.
grid(slots: GridSlots): PlacementSpec
Import effects from shaders/std and use effects.instances.grid.
Pass it as the recipe's placement, or as one member of byMode.
Parameters
| Name | Type | Notes |
|---|---|---|
slots | GridSlots |
Example
placement: grid({columns: p('columns'), rows: p('rows'), gapX: p('gapX'), gapY: p('gapY'), stagger: p('stagger'), flip: p('flip')})
Tip. Mark
flipcompileTime: true. Only the chosen mirroring is compiled in.
See also
radial— Copies around a circle centred on the layer inside.line— Copies in a row, marching away from the layer inside in one direction.byMode— Lets one select prop switch between a grid, a radial and a linear layout.