SassColour::getSaturation PHP Метод

getSaturation() публичный Метод

Returns the saturation of this colour.
public getSaturation ( boolean $value = false ) : float
$value boolean
Результат float the saturation of this colour.
    public function getSaturation($value = false)
    {
        if ($this->saturation === null) {
            $this->rgb2hsl();
        }
        if ($value && isset($this->saturation->value)) {
            return $this->saturation->value;
        }
        return $this->saturation;
    }