You are here

function theme_canvasactions_rgb in ImageCache Actions 5.2

Same name and namespace in other branches
  1. 5.3 utility.inc \theme_canvasactions_rgb()
2 calls to theme_canvasactions_rgb()
theme_canvasactions_definecanvas in ./canvasactions.inc
Implementation of theme_hook() for imagecache_ui.module
theme_imagecache_colorshift in ./imagecache_coloractions.module
Implementation of theme_hook() for imagecache_ui.module

File

./utility.inc, line 69

Code

function theme_canvasactions_rgb($rgb) {
  if ($rgb['HEX'] && ($deduced = hex_to_rgb($rgb['HEX']))) {
    $rgb = array_merge($rgb, $deduced);
  }
  if ($rgb['red'] || $rgb['green'] || $rgb['blue']) {
    $output .= ' RGB:[' . $rgb['red'] . ', ' . $rgb['green'] . ', ' . $rgb['blue'] . '] #' . $rgb['HEX'];
  }
  else {
    $output .= ' ' . t('Transparent');
  }
  return $output;
}