You are here

public static function SassScriptFunctions::rgb in Sassy 7.3

Same name and namespace in other branches
  1. 7 phamlp/sass/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

SassNumber the green component.: A number between 0 and 255 inclusive, or between 0% and 100% inclusive

SassNumber the blue component.: A number between 0 and 255 inclusive, or between 0% and 100% inclusive

Return value

new SassColour SassColour object

Throws

SassScriptFunctionException if red, green, or blue are out of bounds

File

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