Colour to Greyscale Colour: Difference between revisions
Jump to navigation
Jump to search
Created page, updated descriptions. |
m Updated description of math involved. |
||
| Line 10: | Line 10: | ||
When converting a colour to a scalar, the scalar is set to the luminance value of the colour: | When converting a colour to a scalar, the scalar is set to the luminance value of the colour: | ||
<ul> | <ul> | ||
scalar becomes luminance of colour | <!--scalar becomes luminance of colour <br /n> --> | ||
luminance = 0.2125 * r + 0.7152 * g + 0.0724 * b | |||
</ul> | </ul> | ||
Revision as of 23:33, 21 March 2022

Overview
The Colour to greyscale colour node converts the Input colour into greyscale colour. The math is the same for converting colour data to scalar data according to the node input type conversion rules which are described in the Node Input Type Conversion documentation.
When converting a colour to a scalar, the scalar is set to the luminance value of the colour:
-
luminance = 0.2125 * r + 0.7152 * g + 0.0724 * b
Settings:
- Name: This setting allows you to apply a descriptive name to the node, which can be helpful when using multiple Colour to greyscale colour nodes in a project.
- Enable: When checked, the node is active and the conversion operation will take place. When unchecked the values assigned to its Main Input, if any, are passed through, otherwise a value of 0 is passed through.