I would like to use TColor::CreateGradientColorTable() to make a color palette that goes smoothly from black to orange to white. I use the example given in the documentation, where I change the rgb values to correspond to the colors I want at the stop, black, orange, white.
In the output, I get shades of blue (see below). I experimented with other values, but somehow, they do not make sense. How can I get the colors I need?
Thank you for the response. Could you explain how you got the RGB values? These seem to be shades of blue or am I not interpreting the arrays correctly?
Also, what does one input if one wants to use more than 3 stops since there are only three RGB arrays defined?
I think I understand now. The same index of each of the three arrays represents the RGB values for each stop you define. I assume that if you wanted, for example 4 stops, the size of the the Red, Green, and Blue arrays would be 4 instead of three.