Leafo\ScssPhp\Compiler::libOpacify PHP Method

libOpacify() protected method

protected libOpacify ( $args )
    protected function libOpacify($args)
    {
        $color = $this->assertColor($args[0]);
        $amount = $this->coercePercent($args[1]);
        $color[4] = (isset($color[4]) ? $color[4] : 1) + $amount;
        $color[4] = min(1, max(0, $color[4]));
        return $color;
    }
Compiler