Negate colour

Negate colour

The Negate family of nodes takes the Input value and flips its sign. That is to say, if the Input is a positive number it will become a negative number. If the Input value is a negative number it will become a positive number. Here's some examples:

 

2.6 becomes -2.6

-3 becomes 3

 

For colours and vectors the negation is done on a component-wise basis, so using vectors as an example :

 

( 2.1, -6, 4 ) becomes ( -2.1, 6, -4 )

( -10, 3, -2 ) becomes ( 10, -3, 2 )