You are here

public function SassColour::getRgba in Sassy 7

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

* Returns an array with the RGB and alpha components of this colour. *

Return value

array the RGB and alpha components of this colour

File

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

Class

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

Code

public function getRgba() {
  return array(
    $this
      ->getRed(),
    $this
      ->getGreen(),
    $this
      ->getBlue(),
    $this->alpha,
  );
}