public static function SassScriptFunctions::hue in Sassy 7
Same name and namespace in other branches
- 7.3 phpsass/script/SassScriptFunctions.php \SassScriptFunctions::hue()
* Returns the hue component of a colour. *
Parameters
SassColour The colour: * @return new SassNumber The hue component of colour * @throws SassScriptFunctionException If $colour is not a colour
File
- phamlp/
sass/ script/ SassScriptFunctions.php, line 204
Class
- SassScriptFunctions
- SassScript functions class. A collection of functions for use in SassSCript. @package PHamlP @subpackage Sass.script
Code
public static function hue($colour) {
SassLiteral::assertType($colour, 'SassColour');
return new SassNumber($colour->hue);
}