I want to generate a heat map in windows form. I have a set of points as the input. How to go about doing this in the simplest way? Thanks.
This is a fix for Sam's code.
public Color HeatMapColor(decimal value, decimal min, decimal max) { decimal val = (value - min) / (max - min); int r = Convert.ToByte(255 * val); int g = Convert.ToByte(255 * (1 - val)); int b = 0; return Color.FromArgb(255,r,g,b); }