src/Modules/Imager/GDDriver.php
protected function getColor($color, $opacity = 0)
    {
        $color = $this->normalizeColor($color);
        return imagecolorallocatealpha($this->image_handler, $color[0], $color[1], $color[2], 127 * (1 - $opacity));
    }
protected function getColor($color, $opacity = 0)
    {
        $color = $this->normalizeColor($color);
        return imagecolorallocatealpha($this->image_handler, $color[0], $color[1], $color[2], 127 * (1 - $opacity));
    }
@param string $color
@param integer $opacity

@return integer