Public Member Functions | |
__construct ($color= '#ffffff') |
Public Attributes | |
$r | |
$g | |
$b |
Protected Member Functions | |
constructRGB ($red, $green, $blue) | |
constructHTML ($color) |
Definition at line 1772 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 1789 of file securimage.php.
References constructHTML(), and constructRGB().
|
protected |
Construct from an html hex color code
string | $color |
Definition at line 1843 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 1825 of file securimage.php.
Referenced by __construct().