I had an idea to programmatically generate matching color schemes however I need to be able to generate a linear gradient given a set of two colors (Hex or RGB values).
Can anyone provide me the (pseudo-)code or point me in the right direction to accomplish this task?
EDIT: I forgot to mention, but I also need to specify (or know) the number of steps the gradient takes from color A to color B.