function _color_gd
Same name in other branches
- 9 core/modules/color/color.module \_color_gd()
- 8.9.x core/modules/color/color.module \_color_gd()
Converts a hex triplet into a GD color.
1 call to _color_gd()
- _color_render_images in modules/
color/ color.module - Renders images that match a given palette.
File
-
modules/
color/ color.module, line 714
Code
function _color_gd($img, $hex) {
$c = array_merge(array(
$img,
), _color_unpack($hex));
return call_user_func_array('imagecolorallocate', $c);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.