function _color_gd
_color_gd($img, $hex)
Converts a hex triplet into a GD color.
File
- modules/color/color.module, line 714
- 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); }
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/modules!color!color.module/function/_color_gd/7.x