Leafo\ScssPhp\Compiler::libLightness PHP Method

libLightness() protected method

protected libLightness ( $args )
    protected function libLightness($args)
    {
        $color = $this->assertColor($args[0]);
        $hsl = $this->toHSL($color[1], $color[2], $color[3]);
        return new Node\Number($hsl[3], '%');
    }
Compiler