Leafo\ScssPhp\Compiler::libSaturate PHP Method

libSaturate() protected method

protected libSaturate ( $args )
    protected function libSaturate($args)
    {
        $value = $args[0];
        if ($value[0] === Type::T_NUMBER) {
            return null;
        }
        $color = $this->assertColor($value);
        $amount = 100 * $this->coercePercent($args[1]);
        return $this->adjustHsl($color, 2, $amount);
    }
Compiler