# Difference between revisions of "Difference Colour"

Line 1: | Line 1: | ||

− | |||

− | |||

− | |||

[[Image:drex_module_47_image_0.png|485pxpx|Difference Colour]] | [[Image:drex_module_47_image_0.png|485pxpx|Difference Colour]] | ||

'''Node Description & Purpose: '''<br /> The Difference family of nodes finds the difference of the two input values. The difference is the absolute value of the '''Input''' value minus the '''Input 2''' value:<br /><br /> Output = '''absolute value of'''( Input '''minus''' Input 2 )<br /><br /> For more information about absolute values, see the documentation for the [[Abs Colour|Abs Colour]] node.<br /><br /> For colours the calculation is done on a component-wise basis, for example: <br /><br /> Output.red = '''difference of''' Input.red and Input 2.red<br /> Output.green = '''difference of''' Input.green and Input 2.green<br /> Output.blue = '''difference of''' Input.blue and Input 2.blue<br /><br />'''Node Type: ''' Function<br /><br />'''Settings: '''<br /> These nodes just have one other setting, which lets you choose a node for '''Input 2'''. | '''Node Description & Purpose: '''<br /> The Difference family of nodes finds the difference of the two input values. The difference is the absolute value of the '''Input''' value minus the '''Input 2''' value:<br /><br /> Output = '''absolute value of'''( Input '''minus''' Input 2 )<br /><br /> For more information about absolute values, see the documentation for the [[Abs Colour|Abs Colour]] node.<br /><br /> For colours the calculation is done on a component-wise basis, for example: <br /><br /> Output.red = '''difference of''' Input.red and Input 2.red<br /> Output.green = '''difference of''' Input.green and Input 2.green<br /> Output.blue = '''difference of''' Input.blue and Input 2.blue<br /><br />'''Node Type: ''' Function<br /><br />'''Settings: '''<br /> These nodes just have one other setting, which lets you choose a node for '''Input 2'''. | ||

− | |||

<!-- imported from file: module_47.html--> | <!-- imported from file: module_47.html--> | ||

+ | |||

+ | [[Category:Rotate| ]] |

## Revision as of 01:36, 18 May 2011

**Node Description & Purpose: **

The Difference family of nodes finds the difference of the two input values. The difference is the absolute value of the **Input** value minus the **Input 2** value:

Output = **absolute value of**( Input **minus** Input 2 )

For more information about absolute values, see the documentation for the Abs Colour node.

For colours the calculation is done on a component-wise basis, for example:

Output.red = **difference of** Input.red and Input 2.red

Output.green = **difference of** Input.green and Input 2.green

Output.blue = **difference of** Input.blue and Input 2.blue**Node Type: ** Function**Settings: **

These nodes just have one other setting, which lets you choose a node for **Input 2**.

A single object or device in the node network which generates or modifies data and may accept input data or create output data or both, depending on its function. Nodes usually have their own settings which control the data they create or how they modify data passing through them. Nodes are connected together in a network to perform work in a network-based user interface. In Terragen 2 nodes are connected together to describe a scene.