You are here

public static function SassScriptFunctions::fade_out in Sassy 7

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

* Makes a colour more transparent. * Alias for {@link transparentize}. *

Parameters

SassColour The colour to transparentize: * @param SassNumber The amount to transparentize the colour by * @param SassBoolean Whether the amount is a proportion of the current value * (true) or the total range (false). * @return new SassColour The transparentized colour * @throws SassScriptFunctionException If $colour is not a colour or * $amount is not a number * @see transparentize

File

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

Class

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

Code

public static function fade_out($colour, $amount, $ofCurrent = false) {
  return self::transparentize($colour, $amount, $ofCurrent);
}