ILIAS
release_5-1 Revision 5.0.0-5477-g43f3e3fab5f
|
Public Member Functions | |
__construct ($color='#ffffff') | |
Create a new Securimage_Color object. More... | |
Data Fields | |
$r | |
$g | |
$b | |
Protected Member Functions | |
constructRGB ($red, $green, $blue) | |
Construct from an rgb triplet. More... | |
constructHTML ($color) | |
Construct from an html hex color code. More... | |
Definition at line 2125 of file securimage.php.
Securimage_Color::__construct | ( | $color = '#ffffff' | ) |
Create a new Securimage_Color object.
Constructor expects 1 or 3 arguments.
When passing a single argument, specify the color using HTML hex format,
when passing 3 arguments, specify each RGB component (from 0-255) individually.
$color = new Securimage_Color('#0080FF') or
$color = new Securimage_Color(0, 128, 255)
string | $color |
Exception |
Definition at line 2142 of file securimage.php.
References constructHTML(), and constructRGB().
|
protected |
Construct from an html hex color code.
string | $color |
Definition at line 2196 of file securimage.php.
References $blue, $green, and $red.
Referenced by __construct().
|
protected |
Construct from an rgb triplet.
int | $red | The red component, 0-255 |
int | $green | The green component, 0-255 |
int | $blue | The blue component, 0-255 |
Definition at line 2178 of file securimage.php.
References $blue, $green, and $red.
Referenced by __construct().
Securimage_Color::$b |
Definition at line 2129 of file securimage.php.
Securimage_Color::$g |
Definition at line 2128 of file securimage.php.
Securimage_Color::$r |
Definition at line 2127 of file securimage.php.