Function Block BLACKBODY

The Function Block BALCKBODY calculates the corresponding color based on the color temperature according to Planck's Radiation Law.

Input K

The input defines the color temperature in Kelvin.

Output #RGB

Returns the calculated color as a string in the format '#RRGGBB'.

Output R

Returns the calculated red color as a number between 0 and 255.

Output G

Returns the calculated green color as a number between 0 and 255.

Output B

Returns the calculated blue color as a number between 0 and 255.