Clamp 0 1 Colour: Difference between revisions
No edit summary |
No edit summary |
||
| Line 1: | Line 1: | ||
[[Image:drex_module_66_image_0.png|485pxpx|Clamp 0 1 Colour]] | [[Image:drex_module_66_image_0.png|485pxpx|Clamp 0 1 Colour]] | ||
'''Node Description & Purpose: '''<br /> The Clamp 0 1 family of nodes allow you to clamp, or restrict, the values of the colour or scalar coming into the Input between 0 and 1. If the value is less than 0 it will become 0. If the value is greater than 1 it will become 1. The clamping is done component-wise for colours. Here is an example using a colour with the following values: | '''Node Description & Purpose: '''<br /> The Clamp 0 1 family of nodes allow you to clamp, or restrict, the values of the colour or scalar coming into the Input between 0 and 1. If the value is less than 0 it will become 0. If the value is greater than 1 it will become 1. The clamping is done component-wise for colours. Here is an example using a colour with the following values: | ||
| Line 16: | Line 12: | ||
'''Settings: '''<br /> This node has no other settings apart from the Input node. | '''Settings: '''<br /> This node has no other settings apart from the Input node. | ||
[[Category: Function Nodes]] | |||
[[Category: Clamp]] | |||
Revision as of 21:14, 17 May 2011
Node Description & Purpose:
The Clamp 0 1 family of nodes allow you to clamp, or restrict, the values of the colour or scalar coming into the Input between 0 and 1. If the value is less than 0 it will become 0. If the value is greater than 1 it will become 1. The clamping is done component-wise for colours. Here is an example using a colour with the following values:
Input.red is -1
Input.green is 0.5
Input.blue is 2
After clamping the colour will have these values:
Input.red becomes 0 (-1 was less than 0, so it becomes 0)
Input.green remains 0.5 (0.5 is between 0 and 1, so it's unchanged)
Input.blue becomes 1 (2 was greater than 1, so it becomes 1)
Node Type: Function
Settings:
This node has no other settings apart from the Input node.
