You are here

public function SassColour::getHue in Sassy 7.3

Same name and namespace in other branches
  1. 7 phamlp/sass/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 phpsass/script/literals/SassColour.php
Returns an array with the HSL components of this colour.
SassColour::getHsla in phpsass/script/literals/SassColour.php
Returns an array with the HSL and alpha components of this colour.
SassColour::with in phpsass/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

phpsass/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;
}