Conversion Temperature (Celsius) to RGB Value

is there a function available to convert a temperature value (range 10° Celsius up to 90°) to a RGB value representing the colour ? The calculated colour / RGB value shall be used to controll a LED.

The range node might work

A quick search of the forum reveals....

Nice, I as going to just set up a ratio, since RGB is 0-255 and Celsius is 0 to 100. Of course you could weight the ratio per color by percentage, to get some nice colorization. So a nice red, that is not just all red, could be red 75%, 10% green and 15% blue, once you establish the ratio for red for example.

Perfect, seems to do what I want, thanks!

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.