Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- function InvertColor($hex) {
- return sprintf("%06s",base_convert(($hex ^ 0xFFFFFF),10,16));
- };
- print '<td bgcolor="BB2222"><font color="'.InvertColor(0xBB2222).'">Blah</font></td>';
- // Prints 44dddd as the font color, which is it's opposite on the color wheel
- ?>
Advertisement
Add Comment
Please, Sign In to add comment