You are here

function _color_gd in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/color/color.module \_color_gd()

Converts a hex triplet into a GD color.

1 call to _color_gd()
_color_render_images in core/modules/color/color.module
Renders images that match a given palette.

File

core/modules/color/color.module, line 730
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);
}