public function SassColour::getSaturation in Sassy 7
Same name and namespace in other branches
- 7.3 phpsass/script/literals/SassColour.php \SassColour::getSaturation()
* Returns the saturation of this colour. *
Return value
float the saturation of this colour.
3 calls to SassColour::getSaturation()
- SassColour::getHsl in phamlp/
sass/ script/ literals/ SassColour.php - * Returns an array with the HSL components of this colour. *
- SassColour::getHsla in phamlp/
sass/ script/ literals/ SassColour.php - * Returns an array with the HSL and alpha components of this colour. *
- SassColour::with in phamlp/
sass/ script/ literals/ SassColour.php - * Returns a copy of this colour with one or more channels changed. * RGB or HSL attributes may be changed, but not both at once. *
File
- phamlp/
sass/ script/ literals/ SassColour.php, line 634
Class
- SassColour
- SassColour class. A SassScript object representing a CSS colour.
Code
public function getSaturation() {
if (is_null($this->saturation)) {
$this
->rgb2hsl();
}
return $this->saturation;
}