byMode

Lets one select prop switch between a grid, a radial and a linear layout.

byMode(mode: PropRef, members: PlacementPick['members']): PlacementPick

Import effects from shaders/std and use effects.instances.byMode.

mode is a compile-time select with the values 'grid', 'radial' and 'linear'; only the chosen layout is compiled in.

Parameters

NameTypeNotes
modePropRef
membersPlacementPick['members']

Example

placement: byMode(p('mode'), {grid: grid({...}), radial: radial({...}), linear: line({...})})

See also

  • grid — Copies in rows and columns, filling this layer's bounding box.
  • radial — Copies around a circle centred on the layer inside.
  • line — Copies in a row, marching away from the layer inside in one direction.

Used by

Repeater