You are here

public static function SassScriptFunctions::fade_out in Sassy 7.3

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

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

Parameters

SassColour The colour to transparentize:

SassNumber The amount to transparentize the colour by:

SassBoolean Whether the amount is a proportion of the current value: (true) or the total range (false).

Return value

new SassColour The transparentized colour

Throws

SassScriptFunctionException If $colour is not a colour or $amount is not a number

See also

transparentize

File

phpsass/script/SassScriptFunctions.php, line 423

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