public static function SassScriptFunctions::rgb in Sassy 7
Same name and namespace in other branches
- 7.3 phpsass/script/SassScriptFunctions.php \SassScriptFunctions::rgb()
* Creates a SassColour object from red, green, and blue values. *
Parameters
SassNumber the red component.: * A number between 0 and 255 inclusive, or between 0% and 100% inclusive * @param SassNumber the green component. * A number between 0 and 255 inclusive, or between 0% and 100% inclusive * @param SassNumber the blue component. * A number between 0 and 255 inclusive, or between 0% and 100% inclusive * @return new SassColour SassColour object * @throws SassScriptFunctionException if red, green, or blue are out of bounds
File
- phamlp/
sass/ script/ SassScriptFunctions.php, line 58
Class
- SassScriptFunctions
- SassScript functions class. A collection of functions for use in SassSCript. @package PHamlP @subpackage Sass.script
Code
public static function rgb($red, $green, $blue) {
return self::rgba($red, $green, $blue, new SassNumber(1));
}