set temperature HEX color from normalized number

This is the place for queries that don't fit in any of the other categories.

set temperature HEX color from normalized number

Postby ollin18 » Tue Aug 27, 2013 5:38 pm

Hello,
I want to get a temperature color HEX code from a normalized number being 0 the coldest (blue) and 1 the hottest (red). I absolutely have no idea of how to I do this...
Thanks
ollin18
 
Posts: 1
Joined: Tue Aug 27, 2013 5:33 pm

Re: set temperature HEX color from normalized number

Postby micseydel » Tue Aug 27, 2013 6:04 pm

Could you give some example input and output? And you're more likely to get a response if you post an attempt at code, even if it's wrong, so that we can get a base idea for what you do and don't know.
Join the #python-forum IRC channel on irc.freenode.net!

Please do not PM members regarding questions which are meant to be discussed publicly. The point of the forum is so that others can benefit from it. We don't want to help you over PMs or emails.
User avatar
micseydel
 
Posts: 1229
Joined: Tue Feb 12, 2013 2:18 am
Location: Mountain View, CA


Return to General Coding Help

Who is online

Users browsing this forum: No registered users and 4 guests