_color_gd($img, $hex)
Converts a hex triplet into a GD color.
File
- core/modules/color/color.module, line 731
- Allows users to change the color scheme of themes.
Code
function _color_gd($img, $hex) {
$c = array_merge(array($img), _color_unpack($hex));
return call_user_func_array('imagecolorallocate', $c);
}
Please login to continue.