Absolute Value

This page documents the development version of Graphite at dev.graphite.art, which may differ from the current release.

The absolute value function (abs) removes the negative sign from an input value, if present.

With a vec2 input, this applies separately to the X and Y components. For the overall length of a vec2, see the "Magnitude" node instead.

Interface

Inputs

ParameterDetailsPossible Types
Value

The number to be made positive.

Primary Input

Integer[]
Integer
Number[]
Number
Vec2[]
Vec2

Outputs

ProductDetailsPossible Types
Result

The value produced by the node operation.

Primary Output

Number
Number[]
Integer
Integer[]
Vec2
Vec2[]