On May 10, 11:36 am, rowe_newsgroups <rowe_em...@yahoo.comwrote:
On May 10, 1:32 pm, "simchajoy2...@yahoo.com"
<simchajoy2...@yahoo.comwrote:
Hi,
I need to calculate a range of colors given the beginning and ending
colors in hex values (i.e. blue to red). I know there is a logic to
hex numbers and there is probably a fairly simple way to increment
from one color to the next - but I have no idea what it is. Does
anyone know how to do this? Any suggestions greatly appreciated!!
Thanks!
Joy
Are you doing this for painting? If so you might look at the gradient
brushes which do this automatically.
As far as colors go, the following site might be a good read:
http://www.web-colors-explained.com/
Thanks,
Seth Rowe
Actually, I just have a VB.NET form where a user can specify a color
range and a range of values associated with it. They can also specify
the increment, so for example: the color range is blue - red, the
value range is 1 - 1,000 and the increment is 50. I will divide 1,000
by 50 to get the number of individual ranges - for each range I need a
color that falls within the range of blue - red. The only way I can
figure out how to do this is to use the hex values and somehow
increment them to get a color for each range. Does that make sense?
Thanks for your help!
Joy