I want to generate a color, in hexadecimal from a pair of two numbers. These numbers could be of any value. But the resulting number (in decimal) must be between 0 and 16777215
Its not the most common of things so I don't believe there would be some algorithm already out there for it.
The color needs to come out as unique for every pair, forgetting about order of the numbers, for example 456, 782 would be the same color as 782, 456, there would have to be a limit of the values in this pair otherwise as Henning Makholm has said, there wouldn't be a finite amount of possibilities.
The number shouldn't be a random number and it should be able to be produced again using the same pair.
Pseudo code is always good if you are into programming :)
Thanks.
