Complement Colour: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
Conformed layout & updated GUI image. |
||
| Line 1: | Line 1: | ||
<div style="float:right; border-style:solid; padding:20px"><categorytree mode=pages hideroot=off>Inverse</categorytree></div> | |||
[[File:ComplementColour_00_GUI.png|none|470px|Complement Colour]] | |||
==Overview== | |||
The Complement family of nodes takes the Input value and outputs that value subtracted from one: | |||
Output = 1 '''minus''' Input | Output = 1 '''minus''' Input | ||
For colours the calculation is done on a component-wise basis, for example: | |||
Output.red = 1 '''minus''' Input.red <br /n> | |||
Output.green = 1 '''minus''' Input.green <br /n> | |||
Output.blue = 1 '''minus''' Input.blue <br /n> | |||
These nodes are most useful when you are dealing with input values which go from 0 to 1. They can be useful for giving the effect of flipping or inverting a value, for example an input of 0.9 would become 0.1. If you were creating an effect using alpha blending you could use the Complement node to flip an alpha value from almost opaque to nearly transparent. | |||
These nodes have no other settings apart from the Input node. | |||
'''Settings:''' | |||
* '''Name:''' This setting allows you to apply a descriptive name to the node, which can be helpful when using multiple Complement colour nodes in a project. | |||
*'''Enable:''' When checked, the node is active, and when unchecked the node is ignored. | |||
<br /n> | |||
[[Category:Inverse]] | [[Category:Inverse]] | ||
Latest revision as of 22:08, 5 April 2022

Overview
The Complement family of nodes takes the Input value and outputs that value subtracted from one:
Output = 1 minus Input
For colours the calculation is done on a component-wise basis, for example:
Output.red = 1 minus Input.red
Output.green = 1 minus Input.green
Output.blue = 1 minus Input.blue
These nodes are most useful when you are dealing with input values which go from 0 to 1. They can be useful for giving the effect of flipping or inverting a value, for example an input of 0.9 would become 0.1. If you were creating an effect using alpha blending you could use the Complement node to flip an alpha value from almost opaque to nearly transparent.
These nodes have no other settings apart from the Input node.
Settings:
- Name: This setting allows you to apply a descriptive name to the node, which can be helpful when using multiple Complement colour nodes in a project.
- Enable: When checked, the node is active, and when unchecked the node is ignored.