public static function SassScriptFunctions::grayscale in Sassy 7.3
Same name and namespace in other branches
- 7 phamlp/sass/script/SassScriptFunctions.php \SassScriptFunctions::grayscale()
Greyscale for non-english speakers.
Parameters
SassColour The colour:
Return value
new SassColour The greyscale colour
See also
desaturate
File
- phpsass/
script/ SassScriptFunctions.php, line 444
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));
}