]>
The math for a line segment in three dimensions the endpoints P0 and P1 is:
To see what the transition would look like in RGB, click the first and last colors to change them:
Another common colorspace for color charts is HSV because it looks prettier when laid out. So far as transitions, however, it is too sporadic:
Examples: