Color scaling function
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 ? Basically, the general method for smooth transition between two values is the following function: function transition(value, maximum, start_point, end_point): return start_point + (end_point - start_point)*value/maximum That given, you define a function that does the transition for triplets (RGB, HSV etc). function transition3(value, maximum, (s1, s2, s3),