PHP Class Securimage_Color, PHP-Fusion

Since: 2.0
Show file Open project: php-fusion/PHP-Fusion

Public Properties

Property Type Description
$b integer Blue component: 0-255
$g integer Green component: 0-255
$r integer Red component: 0-255

Public Methods

Method Description
Securimage_Color ( $red, $green = NULL, $blue = NULL ) Create a new Securimage_Color object.
Specify the red, green, and blue components using their HTML hex code equivalent.
Example: The code for the HTML color #4A203C is:
$color = new Securimage_Color(0x4A, 0x20, 0x3C);

Method Details

Securimage_Color() public method

Create a new Securimage_Color object.
Specify the red, green, and blue components using their HTML hex code equivalent.
Example: The code for the HTML color #4A203C is:
$color = new Securimage_Color(0x4A, 0x20, 0x3C);
public Securimage_Color ( $red, $green = NULL, $blue = NULL )
$red Red component 0-255
$green Green component 0-255
$blue Blue component 0-255

Property Details

$b public property

Blue component: 0-255
public int $b
return integer

$g public property

Green component: 0-255
public int $g
return integer

$r public property

Red component: 0-255
public int $r
return integer