function coloractions_colorshift_effect in ImageCache Actions 8
Same name and namespace in other branches
- 7 coloractions/imagecache_coloractions.module \coloractions_colorshift_effect()
Image effect callback for the color shift effect.
Parameters
stdClass $image:
array $data:
Return value
bool true on success, false otherwise.
1 string reference to 'coloractions_colorshift_effect'
- imagecache_coloractions_image_effect_info in coloractions/
imagecache_coloractions.module - Implements hook_image_effect_info().
File
- coloractions/
imagecache_coloractions.module, line 248
Code
function coloractions_colorshift_effect(stdClass $image, array $data) {
// convert color from hex (as it is stored in the UI)
if ($data['RGB']['HEX'] && ($deduced = imagecache_actions_hex2rgba($data['RGB']['HEX']))) {
$data['RGB'] = array_merge($data['RGB'], $deduced);
}
return image_toolkit_invoke('colorshift', $image, array(
$data,
));
}