Home
last modified time | relevance | path

Searched refs:targetColor (Results 1 – 2 of 2) sorted by relevance

/plugin/photogallery/phpThumb/
Dphpthumb.filters.php228 public function Colorize(&$gdimg, $amount, $targetColor) { argument
231 $targetColor = (phpthumb_functions::IsHexColor($targetColor) ? $targetColor : 'gray');
238 if ($targetColor == 'gray') {
239 $targetColor = '808080';
241 $r = round($amountPct * hexdec(substr($targetColor, 0, 2)));
242 $g = round($amountPct * hexdec(substr($targetColor, 2, 2)));
243 $b = round($amountPct * hexdec(substr($targetColor, 4, 2)));
253 if ($targetColor != 'gray') {
254 $TargetPixel['red'] = hexdec(substr($targetColor, 0, 2));
255 $TargetPixel['green'] = hexdec(substr($targetColor, 2, 2));
[all …]
/plugin/combo/ComboStrap/
H A DColorRgb.php734 $targetColor = ColorRgb::createFromString($color);
735 $ratio = $this->getContrastRatio($targetColor);
744 $ratio = $newColorRgb->getContrastRatio($targetColor);