I would like to know how i can convert hex #C0C0C0 to the Amigas hex equivilent of #xxxxxxxx which is 8 digits per color instead of 2. For example red green blue is normally C0,C0,C0 or red = C0(192), green = C0(192), blue C0(192) or #COCOCO in full notation. However the amiga reques that functions such as ObtainBestPenA have the color in hex as #FFFFFFFF, #FFFFFFFF, FFFFFFFF or red = #FFFFFFFF(4294967295), green = #FFFFFFFF(4294967295), blue = #FFFFFFFF(4294967295) or:
ObtainBestPenA(GameWindow->WScreen->ViewPort.ColorMap, 0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF, NULL);
except i want to convert different hex colors like:
#C0C0C0
#208040
#005b7f
Any help in this matter would be greatly appreciated.
Omega Space Protons