Repeat2d Op
Triggers all ops underneath Num X * Num Y times
Summary (oneliner)
<p>Imagine a <a href="/op/Ops.Trigger.Repeat">Ops.Trigger.Repeat</a> connected to a <a href="/op/Ops.Trigger.Repeat">Ops.Trigger.Repeat</a>, or a for loop inside a for loop. This loop is especially useful for drawing a matrix of objects.</p>
- Ops.Trigger.Repeat2d
- Core Op - Official cables op
- MIT
Documentation (markdown)
Issues
Example patch id
Youtube ids (comma seperated)
Op Licence
Caniuse query
Example Patch Repeat 2D
The repeat 2D op is like using two repeat ops in one. Check the Repeat example for a simplified demonstration of this patch.
INPUT PORTS
<p>Executes the loop</p>
<i>integer</i>
)<p>Number of times executed on the X axis</p>
<i>integer</i>
)<p>Number of times executed on the Y axis</p>
<p>Multiplies the <code>X</code> and <code>Y</code>values, makes it easier e.g. to use the outputs directly in a Ops.Gl.Matrix.Transform</p>
<i>boolean</i>
)<p>Centers <code>X</code> and <code>Y</code> around the origin <code>(0/0)</code></p>
OUTPUT PORTS
<p>Trigger for each iteration of the loop</p>
<p>The X value for the current iteration</p>
<p>The Y value for the current iteration</p>
<p>Current index. If you have a 5x5 repeater, this value goes from 0 to (including) 24</p>