function _color_gd

7.x color.module _color_gd($img, $hex)
6.x color.module _color_gd($img, $hex)

Convert a hex triplet into a GD color.

1 call to _color_gd()
_color_render_images in drupal-6.x/modules/color/color.module
Render images that match a given palette.

File

drupal-6.x/modules/color/color.module, line 592

Code

function _color_gd($img, $hex) {
  $c = array_merge(array($img), _color_unpack($hex));
  return call_user_func_array('imagecolorallocate', $c);
}