You are here

public function SassColour::getRgb in Sassy 7.3

Same name and namespace in other branches
  1. 7 phamlp/sass/script/literals/SassColour.php \SassColour::getRgb()

Returns an array with the RGB components of this colour.

Return value

array the RGB components of this colour

File

phpsass/script/literals/SassColour.php, line 689

Class

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

Code

public function getRgb() {
  return array(
    $this->red,
    $this->green,
    $this->blue,
  );
}