_color_gd

Versions
5 – 6
_color_gd($img, $hex)

Convert a hex triplet into a GD color.

▾ 1 function calls _color_gd()

_color_render_images in modules/color/color.module
Render images that match a given palette.

Code

modules/color/color.module, line 579

<?php
function _color_gd($img, $hex) {
  $c = array_merge(array($img), _color_unpack($hex));
  return call_user_func_array('imagecolorallocate', $c);
}
?>
Login or register to post comments
 
 

All source code and documentation on this site is released under the terms of the GNU General Public License, version 2 and later. Drupal is a registered trademark of Dries Buytaert.