Hi coolGuy,
You may refer to the documentation of your prorgramming language on how to convert a text string to a number.
For example, if you are using PHP, according to PHP syntax rules, the "0xFF009A" should be coerced to 0 in numeric context. If you want to interpret the text string as a hex number, there is a PHP function hexdec that does that, like:
$myColor = hexdec($myColorInString);
For more details, please refer to PHP documentation:
http://php.net/manual/en/function.hexdec.php
Hope this can help.
Regards
Peter Kwan |