Simply pass a vector of integers. The first integer represents
the number of iterations for the top level loop. The second integer
represents the number of iterations for the first nested loop and so on. As
an example, loopviz(1, 2)
is a loop that iterates once and contains a
nested loop which iterates twice.
1 2 |
... |
A vector of integers |
animate |
Whether or not to animate the for loop, not working... |
delay |
Delay between frames, to be used when animating for loops |
loop |
If TRUE, continue looping the animation |
translate |
If TRUE, translates the visual to valid, runnable code |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.