[orx-fcurve] Replace |repeat-block| with (repeat-block)
This commit is contained in:
@@ -178,24 +178,24 @@ For example: `M0 L{3 * 4},4` evaluates to `M0 L12,4`.
|
||||
## Repetitions
|
||||
|
||||
EFCurves add support for repetitions. Repetitions are expanded by replacing
|
||||
occurrences of `|<text-to-repeat>|[<number-of-repetitions>]` with `number-of-repetitions` copies
|
||||
occurrences of `(<text-to-repeat>)[<number-of-repetitions>]` with `number-of-repetitions` copies
|
||||
of `text-to-repeat`.
|
||||
|
||||
For example:
|
||||
* `M0 |h1 m1|[3]` expands to `M0 h1 m1 h1 m1 h1 m1`
|
||||
* `M0 |h1 m1|[0]` expands to `M0`
|
||||
* `M0 (h1 m1)[3]` expands to `M0 h1 m1 h1 m1 h1 m1`
|
||||
* `M0 (h1 m1)[0]` expands to `M0`
|
||||
|
||||
### Nested repetitions
|
||||
|
||||
Repetitions can be nested.
|
||||
|
||||
For example `|M0 |h1 m1|[3]|[2]` expands to `M0 h1 m1 h1 m1 h1 m1 M0 h1 m1 h1 m1 h1 m1`.
|
||||
For example `(M0 (h1 m1)[3])[2]` expands to `M0 h1 m1 h1 m1 h1 m1 M0 h1 m1 h1 m1 h1 m1`.
|
||||
|
||||
### Interaction between repetitions and expressions
|
||||
|
||||
`M0 |H{it + 1} m1][3]` expands to `M0 H1 m1 H2 m1 H3 m1`
|
||||
`M0 (H{it + 1} m1)[3]` expands to `M0 H1 m1 H2 m1 H3 m1`
|
||||
|
||||
`M0 |H{index + 1} m{it}]{1.2, 1.3, 1.4}` expands to `M0 H1 m1.2 H2 m1.3 H3 m1.4`
|
||||
`M0 (H{index + 1} m{it}){1.2, 1.3, 1.4}` expands to `M0 H1 m1.2 H2 m1.3 H3 m1.4`
|
||||
|
||||
|
||||
# References
|
||||
|
||||
Reference in New Issue
Block a user