public static function SassScriptFunctions::greyscale in Sassy 7
Same name and namespace in other branches
- 7.3 phpsass/script/SassScriptFunctions.php \SassScriptFunctions::greyscale()
* Converts a colour to greyscale. * Reduces the saturation to zero. *
Parameters
SassColour The colour: * @return new SassColour The greyscale colour * @see desaturate
File
- phamlp/
sass/ script/ SassScriptFunctions.php, line 448
Class
- SassScriptFunctions
- SassScript functions class. A collection of functions for use in SassSCript. @package PHamlP @subpackage Sass.script
Code
public static function greyscale($colour) {
return self::desaturate($colour, new SassNumber(100));
}