# Conversion Temperature (Celsius) to RGB Value

**URL:** <https://discourse.nodered.org/t/conversion-temperature-celsius-to-rgb-value/34548>\
**Category:** General\
**Created:** [20 October 2020 09:22 UTC](https://discourse.nodered.org/t/conversion-temperature-celsius-to-rgb-value/34548 "2020-10-20T09:22:29Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)\
**Post date:** [20 October 2020 12:58 UTC](https://discourse.nodered.org/t/conversion-temperature-celsius-to-rgb-value/34548/3 "2020-10-20T12:58:12Z")

</div>

A quick search of the forum reveals....

> [@"Colour mapping" - help needed to create RGB value](https://discourse.nodered.org/t/colour-mapping-help-needed-to-create-rgb-value/33364/13):
>
> Here is an adaption of that code. As you didnt specify how you want RGB to be represented, I just spit out a whole bunch of different values (r,g,b,val,hex) in the payload object. Ignore the pink image nodes at the bottom - they are to demonstrate it working. [{"id":"e17b05ed.383be8","type":"inject","z":"f057b3e5.0b042","name":"","topic":"","payload":"30","payloadType":"num","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":170,"y":140,"wires":[["bfca8794.36a6e8"]]},{"i…

---

_[View the full topic](https://discourse.nodered.org/t/conversion-temperature-celsius-to-rgb-value/34548)._
