You are here

public static function SassScriptFunctions::complement in Sassy 7

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

* Returns the complement of a colour. * Rotates the hue by 180 degrees. *

Parameters

SassColour The colour: * @return new SassColour The comlemented colour * @uses adjust_hue()

File

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

Class

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

Code

public static function complement($colour) {
  return self::adjust_hue($colour, new SassNumber('180deg'));
}