Even Number node

Access: Nodes > Math > Even Number

Outputs 1 per channel where the floored value is an even integer, otherwise 0. Can be used to quickly construct alternating tile patterns (such as staggering brick layouts or parquet floors).

Input (RGB) Output (RGBA)
2.0, 3.0, 4.8 1.0, 0.0, 1.0, 1.0 (Floors values: 2 and 4 are even, resulting in the output of 1.0, 3 is odd, so the output is 0.0)
0.0, 0.0, 0.0 1.0, 1.0, 1.0, 1.0 (0 is treated as an even integer, so the output is 1.0)
-1.2, -2.5, 1.9 0.0, 1.0, 0.0, 1.0 (Floors values: -2 and -3 evaluated per channel)

Even Number node inputs

Input

The input value to test.

Even Number node outputs

Output

Outputs 1 if the floor of the input is an even integer, 0 otherwise. Useful for alternating tile patterns.