Color to Brightness

 
 
 

Categories

  • Color

  • Conversion

Description

Creates and outputs a new brightness value by converting the input color according to the specified red, green and blue weights. The weights are always normalized during the conversion.

The specified input alpha component has no effect on the conversion. The resulting alpha component equals the alpha component of the specified input color.

For retrieving a color instead of a single value, use the Color to Grayscale node.

Ports

Inputs

Color

The color to convert.

Red Weight

The weight of the red component.

Green Weight

The weight of the green component.

Blue Weight

The weight of the blue component.

Outputs

Brightness

The resulting brightness value.

Alpha

The alpha component of the input color.

Creative Commons License Except where otherwise noted, this work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported License