My goal with this algorithm I'm working on is to infer a color progression from some of the colors provided. By color progression, I mean creating a fading effect between two colors (color A, color B) and saving each color value ((R, G, B)) between them.
For example, if total black A = (0,0,0) and total white B = (255,255,255) , the result is as follows:
P = ((0,0,0),(1,1,1),(2,2,2), .... ,(253,253,253),(254,254,254),(255,255,255)
So, first we get the white color, and it gradually turns into black. This, of course, is very easy with white and black (just increase RGB by every step 255 times). But what if I want to do this procedure with two arbitrary colors, such as A = (180.69.1) and B = (233.153.0) ??
IMPORTANT NOTE: If it was easier to achieve with hexadecimal (or any other color designation), I could handle this as well, just indicate which type (note that I'm working on PIL (Python Imaging Library), so if it's compatible with this, I'm fine)
Obviously, this should be as a possible distribution, the progression should be uniform.
I need to figure out this algorithm so that I can use it in my Fractal Generator (Mandelbrot Set, google, if you want), so it is important that the progression is as soft as possible, no hiccups.
Thanks in advance.