This has been driving me crazy, can anyone offer any advice, maybe a snippet, on how to convert a hex color code to it's nearest color safe counterpart?
I'm parsing css sheets and need to convert them all, the part I'm stuck on is given not color safe hex code, converting to nearest color safe.
This turned out to be surprisingly hard for me to do :/. I guess this means my math with perl sucks :(
thanksIn reply to Converting hex colors to color safe hex by hushhush
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |