ILIAS
release_4-3 Revision
|
Public Member Functions | |
__construct ($color= '#ffffff') | |
Create a new Securimage_Color object. |
Data Fields | |
$r | |
$g | |
$b |
Protected Member Functions | |
constructRGB ($red, $green, $blue) | |
Construct from an rgb triplet. | |
constructHTML ($color) | |
Construct from an html hex color code. |
Definition at line 1350 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 1367 of file securimage.php.
References constructHTML(), and constructRGB().
|
protected |
Construct from an html hex color code.
string | $color |
Definition at line 1421 of file securimage.php.
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 1403 of file securimage.php.
Referenced by __construct().
Securimage_Color::$b |
Definition at line 1354 of file securimage.php.
Securimage_Color::$g |
Definition at line 1353 of file securimage.php.
Securimage_Color::$r |
Definition at line 1352 of file securimage.php.