You are here

public function SassColour::isTranslucent in Sassy 7

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

* Returns whether this colour object is translucent; that is, whether the alpha channel is non-1. *

Return value

boolean true if this colour is translucent, false if not

File

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

Class

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

Code

public function isTranslucent() {
  return $this->alpha < 1;
}