ProtoFlux:Black Body Color: Difference between revisions

From Resonite Wiki
Created page with " {{#Invoke:ProtoFlux|GenerateUI |Name=Black Body Color |Category=Colors |Inputs= [ {"Name":"Temperature", "Type":"Float"} ] |Outputs= [ {"Name":"*", "Type":"color"} ] |}} Black Body Color returns a color value of the light emitted by an ideal [https://en.wikipedia.org/wiki/Black-body_radiation black body radiator]. This can be used to calculate appropriate values for various [https://en.wikipedia.org/wiki/Color_temperature color temperatures]. This node can convert col..."
 
Fixed node visual.
 
(One intermediate revision by one other user not shown)
Line 5: Line 5:
|Inputs=
|Inputs=
[
[
{"Name":"Temperature", "Type":"Float"}
{"Name":"Temperature", "Type":"float"}
]
]
|Outputs=
|Outputs=
Line 17: Line 17:
This node can convert color values in the range 1000 - 40000 Kelvin. Values outside this range are clamped.
This node can convert color values in the range 1000 - 40000 Kelvin. Values outside this range are clamped.


The implementation in Resonite appears to use [http://www.vendian.org/mncharity/dir3/blackbody/UnstableURLs/bbr_color.html this table] as a source of values. For values more granular than 1000 Kelvin, the node interpolates linearly between the closest two values.
The implementation in Resonite appears to use [http://www.vendian.org/mncharity/dir3/blackbody/UnstableURLs/bbr_color.html this table] as a source of values. For values more granular than 100 Kelvin, the node interpolates linearly between the closest two values.


== Inputs ==
== Inputs ==

Latest revision as of 13:52, 3 July 2024

Black Body Color
Temperature
*
Colors

Black Body Color returns a color value of the light emitted by an ideal black body radiator. This can be used to calculate appropriate values for various color temperatures.

This node can convert color values in the range 1000 - 40000 Kelvin. Values outside this range are clamped.

The implementation in Resonite appears to use this table as a source of values. For values more granular than 100 Kelvin, the node interpolates linearly between the closest two values.

Inputs

Temperature (Float)

The temperature, in Kelvin, to calculate the resulting color for.

Outputs

* (Color)

The color value of the given color temperature.