Arithmetic Nodes
Basic mathematical operations for numeric calculations including addition, subtraction, multiplication, and division.
Arithmetic Nodes
Basic mathematical operations for numeric calculations including addition, subtraction, multiplication, and division.
This category contains 15 nodes.
Nodes
Add
Adds two numbers together
Inputs: A and B (any numbers).
| Name | Type | Range | Default |
|---|---|---|---|
| A | Number | any | 0 |
| B | Number | any | 0 |
Outputs: A + B.
| Name | Type | Range |
|---|---|---|
| Number | Number | any |
Add Color
Adds two colors together by summing their individual RGBWAUV components
Inputs: Two RGBWAUV colors with values in range [0, 255].
| Name | Type | Range | Default |
|---|---|---|---|
| Color 1 | Color | color | [0, 0, 0, 0, 0, 0] |
| Color 2 | Color | color | [0, 0, 0, 0, 0, 0] |
Outputs: Combined color with summed values (may exceed 255).
| Name | Type | Range |
|---|---|---|
| Color | Color | color |
Add Vectors
Vector addition
Inputs: Two 3D vectors.
| Name | Type | Range | Default |
|---|---|---|---|
| Vector A | Vector | vec | [0, 0, 0] |
| Vector B | Vector | vec | [0, 0, 0] |
Outputs: Component-wise sum (A + B).
| Name | Type | Range |
|---|---|---|
| Vector | Vector | vec |
Divide
Divides A by B with division-by-zero protection
Inputs: A, B (divisor, non-zero recommended).
| Name | Type | Range | Default |
|---|---|---|---|
| A | Number | any | 0 |
| B | Number | any | 1 |
Outputs: A / B, or 0 if B is 0.
| Name | Type | Range |
|---|---|---|
| Number | Number | any |
Mix Color
Linear interpolation between two colors
Inputs: Ratio [0, 1] (0=color1, 1=color2), and two RGBWAUV colors with values in range [0, 255].
| Name | Type | Range | Default |
|---|---|---|---|
| Ratio | Number | 0-1 | 0.5 |
| Color 1 | Color | color | [255, 0, 0, 0, 0, 0] |
| Color 2 | Color | color | [0, 255, 0, 0, 0, 0] |
Outputs: Interpolated color.
| Name | Type | Range |
|---|---|---|
| Color | Color | color |
Mix Number
Linear interpolation
Inputs: a, b, ratio [0, 1].
| Name | Type | Range | Default |
|---|---|---|---|
| Ratio | Number | 0-1 | 0.5 |
| Value 1 | Number | any | 0 |
| Value 2 | Number | any | 1 |
Outputs: a * (1-ratio) + b * ratio.
| Name | Type | Range |
|---|---|---|
| Value | Number | any |
Mix Vector
Linear interpolation
Inputs: Two vectors, ratio [0, 1].
| Name | Type | Range | Default |
|---|---|---|---|
| Ratio | Number | 0-1 | 0.5 |
| Vector 1 | Vector | vec | [0, 0, 0] |
| Vector 2 | Vector | vec | [1, 1, 1] |
Outputs: Interpolated vector (A * (1-ratio) + B * ratio).
| Name | Type | Range |
|---|---|---|
| Vector | Vector | vec |
Multiply
Multiplies two numbers
Inputs: A and B (any numbers).
| Name | Type | Range | Default |
|---|---|---|---|
| A | Number | any | 0 |
| B | Number | any | 0 |
Outputs: A * B.
| Name | Type | Range |
|---|---|---|
| Number | Number | any |
Multiply Vector
Vector multiplication (Hadamard product)
Inputs: Two 3D vectors.
| Name | Type | Range | Default |
|---|---|---|---|
| Vector | Vector | vec | [0, 0, 0] |
| Scalar | Number | any | 0 |
Outputs: Component-wise product (A * B).
| Name | Type | Range |
|---|---|---|
| Vector | Vector | vec |
Power
Power function
Inputs: Base and exponent.
| Name | Type | Range | Default |
|---|---|---|---|
| Base | Number | any | 2 |
| Exponent | Number | any | 1 |
Outputs: x^y. Avoid negative base with non-integer exponent.
| Name | Type | Range |
|---|---|---|
| Number | Number | any |
Power
Power function
Inputs: Base and exponent.
| Name | Type | Range | Default |
|---|---|---|---|
| Base | Number | any | 0 |
| Exponent | Number | any | 1 |
Outputs: base^exponent.
| Name | Type | Range |
|---|---|---|
| Number | Number | any |
Power Vector
Power function for each component
Inputs: Base vector, exponent vector.
| Name | Type | Range | Default |
|---|---|---|---|
| Base | Vector | vec | [2, 2, 2] |
| Exponent | Vector | vec | [1, 1, 1] |
Outputs: Vector with base^exponent for each component.
| Name | Type | Range |
|---|---|---|
| Vector | Vector | vec |
Remainder
Modulo operation
Inputs: Dividend and divisor.
| Name | Type | Range | Default |
|---|---|---|---|
| A | Number | any | 0 |
| B | Number | any | 1 |
Outputs: Remainder of a/b.
| Name | Type | Range |
|---|---|---|
| Number | Number | any |
Subtract
Subtracts B from A
Inputs: A and B (any numbers).
| Name | Type | Range | Default |
|---|---|---|---|
| A | Number | any | 0 |
| B | Number | any | 0 |
Outputs: A - B.
| Name | Type | Range |
|---|---|---|
| Number | Number | any |
Subtract Vector
Vector subtraction
Inputs: Two 3D vectors.
| Name | Type | Range | Default |
|---|---|---|---|
| Vector A | Vector | vec | [0, 0, 0] |
| Vector B | Vector | vec | [0, 0, 0] |
Outputs: Component-wise difference (A - B).
| Name | Type | Range |
|---|---|---|
| Vector | Vector | vec |