I need a way to convert an integer to rgb values. Is this possible? I suspect it is, but I’m having a hard time understanding how to do it. I have done a fair amount of searching on google to little avail, but maybe I’m just not seeing things clearly.
I’m hoping to generate sequentially from 0-16777216 (256256256) and convert this number into red, green and blue components. I’m hoping to use this as a way of generating a sequential list of all the possible rgb colours.
C++ code would be most useful to me… but any explanation of what I need to do would be most helpful.