I am working on a project which requires my php script to retrieve colour codes sent by a flash file and then use them to draw a picture. Unfortunately I have no control over the flash file and it is hosted on a different site. It sends many variables, but I don't understand the colour variable. It doesn't appear to be RGB or HEX so I don't know what else it could be. Here are some examples of what the codes are:
0 = black
16777215 = white (this is one less than 2563 which is strange...)
3355443 = #333333
6710886 = #666666
10066329 = #999999
13421772 = #ff0000
Thanks in advance. If you need more colours just ask. 🙂