Color scaling function

Posted by Tomas Pajonk on Stack Overflow See other posts from Stack Overflow or by Tomas Pajonk
Published on 2008-10-03T20:49:06Z Indexed on 2010/04/10 19:33 UTC
Read the original article Hit count: 242

Filed under:
|

I am trying to visualize some values on a form. They range from 0 to 200 and I would like the ones around 0 be green and turn bright red as they go to 200.

Basically the function should return color based on the value inputted. Any ideas ?

© Stack Overflow or respective owner

Related posts about colors

Related posts about interpolation