Linear Space
What It Does
Generates a sequence of evenly spaced numbers between a start and end value. It divides the interval into equal steps, creating a uniform progression from the first to the last value.
Inputs
start
The first value in the sequence
Number
No
stop
The last value in the sequence
Number
No
length
The number of values to generate
Number
No
precision
Number of decimal places to round to
Number
No
Outputs
array
The sequence of evenly spaced values
List
How to Use It
Drag the Linear Space node into your graph.
Set the "start" value (default is 0).
Set the "stop" value (default is 1).
Set the "length" to specify how many values you want (default is 5).
Set the "precision" for decimal rounding (default is 2).
Run the graph—with the default settings, your output will be [0, 0.25, 0.5, 0.75, 1].
Tips
The sequence always includes both the start and stop values.
For reversed sequences, set start higher than stop.
If length is 1, the output will be an array with just the start value.
See Also
Arithmetic Series: For sequences defined by a base value and increment.
Range Mapping: For mapping a single value from one range to another.
Array Map: For transforming each element in an array with a function.
Use Cases
Gradients: Create evenly distributed color stops.
Animation Keyframes: Generate evenly spaced keyframe values.
Data Visualization: Create axis divisions or data sampling points.
Layout Systems: Generate evenly spaced position values for elements.
Last updated