You are here

public static function SassScriptFunctions::grayscale in Sassy 7

Same name and namespace in other branches
  1. 7.3 phpsass/script/SassScriptFunctions.php \SassScriptFunctions::grayscale()

* Greyscale for non-english speakers. *

Parameters

SassColour The colour: * @return new SassColour The greyscale colour * @see desaturate

File

phamlp/sass/script/SassScriptFunctions.php, line 437

Class

SassScriptFunctions
SassScript functions class. A collection of functions for use in SassSCript. @package PHamlP @subpackage Sass.script

Code

public static function grayscale($colour) {
  return self::desaturate($colour, new SassNumber(100));
}