Class Securimage_Color
Color object for Securimage CAPTCHA
Methods summary
public
|
#
__construct( string $color = '#ffffff' )
Create a new Securimage_Color object.
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.
Examples:
$color = new Securimage_Color('#0080FF'); $color = new Securimage_Color(0, 128, 255);
Parameters
- $color
- The html color code to use
Throws
Exception If any color value is not valid
|
protected
|
#
constructRGB( integer $red, integer $green, integer $blue )
Construct from an rgb triplet
Construct from an rgb triplet
Parameters
- $red
- The red component, 0-255
- $green
- The green component, 0-255
- $blue
- The blue component, 0-255
|
protected
|
#
constructHTML( string $color )
Construct from an html hex color code
Construct from an html hex color code
Parameters
|
Properties summary
public
integer
|
$r
|
|
public
integer
|
$g
|
|
public
integer
|
$b
|
|