Created page with " {{#Invoke:ProtoFlux|GenerateUI |Name=Luminance |Category=Colors |Inputs= [ {"Name":"Color", "Type":"color"} ] |Outputs= [ {"Name":"*", "Type":"float"} ] |}} Color Luminance calculates the [https://en.wikipedia.org/wiki/Relative_luminance relative luminance] of an input color. For correct result, the input must be in the Linear color profile, which may be a bug<ref>{{CiteResoniteIssue|281|Color Luminance ProtoFlux node does not give same output as..." |
Add note about this luminance being different from HSL "luminance" |
||
Line 14: | Line 14: | ||
Color Luminance calculates the [https://en.wikipedia.org/wiki/Relative_luminance relative luminance] of an input color. For correct result, the input must be in the [[Type:ColorProfile|Linear color profile]], which may be a bug<ref>{{CiteResoniteIssue|281|Color Luminance ProtoFlux node does not give same output as online color luminance calculator}}</ref>. | Color Luminance calculates the [https://en.wikipedia.org/wiki/Relative_luminance relative luminance] of an input color. For correct result, the input must be in the [[Type:ColorProfile|Linear color profile]], which may be a bug<ref>{{CiteResoniteIssue|281|Color Luminance ProtoFlux node does not give same output as online color luminance calculator}}</ref>. | ||
This should not be confused with the "luminance" output of nodes such as [[ProtoFlux:Color_To_HSL|Color To HSL]], which produce different results. | |||
== Inputs == | == Inputs == |
Revision as of 20:25, 25 February 2024
Luminance
Colors
Color Luminance calculates the relative luminance of an input color. For correct result, the input must be in the Linear color profile, which may be a bug[1].
This should not be confused with the "luminance" output of nodes such as Color To HSL, which produce different results.
Inputs
Color (Color)
The color to calculate the relative luminance of.
Outputs
* (Float)
The relative luminance of the input color.