/ Published in: PHP
Converts a given RGB colour value such as that provided by the imagecolorat() function into an html compliant colour.
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
<?php function rgb2html($r, $g=-1, $b=-1) { return '#'.$color; } ?>