Possible Duplicate:
Color Interpolation Between 3 Colors in .NET
I have been trying to get a categories list of colors using C#:
Red:
255, 69, 0
255, 99, 71
etc..
Green:
0, 250, 154
143, 188, 139
etc...
So far I have been pretty unsuccessful. Ideally, what I’d like is a way to supply two HEX refs or RGB refs and get a list back of say 10 colors between those two references. Is this possible in C#?
EDIT
Found this… http://meyerweb.com/eric/tools/color-blend/ just converting the js to c# now. Will post when its done.
I am not aware of built-in function which would help you, but you can do it yourself.
As long as color can be defined using 3 numbers (R,G,B), you can take two colors:
Then divide diff between pairs and produce numbers by intervals.
I haven’t compiled the code, but you get the idea.