Max

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

The maximum function (max) picks the larger of two numbers.

With vec2 inputs, this applies separately to the X and Y components.

Interface

Inputs

ParameterDetailsPossible Types
Value

One of the two numbers, of which the greater is returned.

Primary Input

Integer[]
Integer
Number[]
Number
String[]
String
Vec2[]
Vec2
Other Value

The other of the two numbers, of which the greater is returned.

Default: 0

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

Outputs

ProductDetailsPossible Types
Result

The value produced by the node operation.

Primary Output

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