protected static function modifyColor($rgbArr, $percent)
	{
		if (is_array($percent)) {
			foreach ($rgbArr as $i=>&$c) {
				$multiplier = $percent[$i] > 0 ? 1 + $percent[$i] / 100 : 1 - $percent[$i] / 100;
				$c = intval(round($c * $multiplier));
				if ($c > 255) $c = 255;
				if ($c < 0) $c = 0;
			}
		} else {
			$multiplier = $percent > 0 ? 1 + $percent / 100 : 1 - $percent / 100;
			foreach ($rgbArr as &$c) {
				$c = intval(round($c * $multiplier));
				if ($c > 255) $c = 255;
				if ($c < 0) $c = 0;
			}
		}

		return $rgbArr;
	}