public function SassColour::getHue in Sassy 7
Same name and namespace in other branches
- 7.3 phpsass/script/literals/SassColour.php \SassColour::getHue()
* Returns the hue of this colour. *
Return value
float the hue of this colour.
3 calls to SassColour::getHue()
- 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 623
Class
- SassColour
- SassColour class. A SassScript object representing a CSS colour.
Code
public function getHue() {
if (is_null($this->hue)) {
$this
->rgb2hsl();
}
return $this->hue;
}