Color inverse
This function inverses a color to it's opposite.
(White to black, blue to yellow, etc.)
Author:
Jonas John
License:
Public Domain
Language:
PHP
Created:
06/13/2006
Updated:
06/13/2006
Tags:
color functions
Sorry folks, comments have been deactivated for now due to the large amount of spam.
Please try to post your questions or problems on a related programming board, a suitable mailing list, a programming chat-room,
or use a QA website like stackoverflow because I'm usually too busy to answer any mails related
to my code snippets. Therefore please just mail me if you found a serious bug... Thank you!
Older comments:
Replace " return '000000'; " with the next line:
$color = str_repeat(substr($color,0,1),2).str_repeat(substr($color,1,1),2).str_repeat(substr($color,2,1),2);