You are here

public static function SassScriptFunctions::complement in Sassy 7.3

Same name and namespace in other branches
  1. 7 phamlp/sass/script/SassScriptFunctions.php \SassScriptFunctions::complement()

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

@uses adjust_hue()

Parameters

SassColour The colour:

Return value

new SassColour The comlemented colour

File

phpsass/script/SassScriptFunctions.php, line 434

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'));
}