You are here

public function SassColour::getHsl in Sassy 7

Same name and namespace in other branches
  1. 7.3 phpsass/script/literals/SassColour.php \SassColour::getHsl()

* Returns an array with the HSL components of this colour. *

Return value

array the HSL components of this colour

File

phamlp/sass/script/literals/SassColour.php, line 705

Class

SassColour
SassColour class. A SassScript object representing a CSS colour.

Code

public function getHsl() {
  return array(
    $this
      ->getHue(),
    $this
      ->getSaturation(),
    $this
      ->getLightness(),
  );
}