From: Jano Svitok Date: 2009-11-28T02:54:57+09:00 Subject: Re: Heatmaps in Ruby On Fri, Nov 27, 2009 at 13:49, Marc Hoeppner wrote: > What I don't know is how to write a method that, based on a numerical > value, determines a color, i.e. from blue to red. > > So if for example the value '1' should be a deep blue and '100' a bright > red - how would one do that? All color coding schemes allowed! Hi, what you are looking for is "color ramp" or "color gradient", there are many sites with algorithms how to compute colors between two or more given ones (for example from blue to red). J.