ProtoFlux:ValueRepeat
The Value Repeat node takes in the number value and the expected length range, then returns a value of the expected placement of that number. This is similar to the Value Mod node.
More actions
(Redirected from ProtoFlux:Value Repeat)
Repeat
Math
The Value Repeat node takes in a number value and the length of the range of the output, then returns what the input would be if the number line were to "repeat" after the length value. For example, if N is 27 and Length is 10, the output will be 7, as if 27 had "looped" past 10 twice, returning to 0 every time, and was only left with the remaining 7. This is similar to the Value Mod node.
Inputs
N (Pseudo-Generic)
The number value we are checking.
Length (Pseudo-Generic)
The expected range for our number to be in. If the number we gave rolls over, it will wrap around this length.
Outputs
* (Pseudo-Generic)
The result of the repeated value.
Examples
-
A chart showing the difference between using Modulus and Repeat nodes (courtesy of GManAmby).