This page documents the development version of Graphite at dev.graphite.art, which may differ from the current release.
The modulo operation (%) calculates the remainder from the division of two scalar numbers or vec2s.
The sign of the result shares the sign of the numerator, or of the modulus if Always Positive is enabled.
Interface
Inputs
| Parameter | Details | Possible Types |
|---|---|---|
| Numerator | The left-hand side of the modulo operation. Primary Input | Integer[]IntegerNumber[]NumberVec2[]Vec2 |
| Modulus | The right-hand side of the modulo operation. Default: | Integer[]IntegerNumber[]NumberVec2[]Vec2 |
| Always Positive | Ensures the result is positive for a positive modulus, even if the numerator is negative. Default: | Bool[]Bool |
Outputs
| Product | Details | Possible Types |
|---|---|---|
| Result | The value produced by the node operation. Primary Output | NumberNumber[]IntegerInteger[]Vec2Vec2[] |