Repeat01 (LogiX node)

From Neos Wiki
Jump to navigation Jump to search
Other languages:
English • ‎日本語

The Repeat node in the Math category takes one argument Value, and does the same operation as the Repeat (LogiX node) where N is set to Value and Length is set to 1, that is it outputs

Value - floor(Value)

This means that the output goes between 0 and 1 in a repeating fashion, as described in Usage.


Inputs & Outputs

Inputs
Color Label Type
Value float
Outputs
Color Label Type
* float

Usage

This node repeats values between 0 and 1, as N is increased. When N is 0, the output is 0, and then the output equals N as N increases, until N reaches the value 1, and the output goes to 0, and repeats this pattern for ever. This pattern looks like a positive-valued sawtooth wave as shown below,

Repeat01 node function.png

Here is an interactive version of the function, https://www.desmos.com/calculator/cb5f9mwu1n

Examples

Node Menu

Math
Back Binary Constants DateTime Enums Matrix Physics
Quantity Random Rect Rotation Shaping TimeSpan Abs
Acos Asin Atan Atan2 Avg Ceil Ceil To Int
Clamp Clamp01 Constant Lerp Constant Slerp Cos Cosine Lerp Cubic Lerp
Exp Floor Floor To Int Greatest Common Divisor Inverse Lerp Is Between Least Common Multiple
Lerp Log Log N Log10 Max Min Multi Lerp
Multi Slerp Nth Root Ping Pong Pow Remap Remap -1..1 to 0..1 Repeat
Repeat01 Round Round To Int Sigmoid Sign Simplex Noise Sin
Slerp Smooth Lerp Sqrt Tan