PHP Class Pop\Color\Space\Rgb

Author: Nick Sagona, III ([email protected])
Inheritance: implements Pop\Color\Space\ColorInterface
Afficher le fichier Open project: nicksagona/PopPHP Class Usage Examples

Protected Properties

Свойство Type Description
$blue integer Blue value
$green integer Green value
$red integer Red value

Méthodes publiques

Méthode Description
__construct ( integer $r, integer $g, integer $b ) : Rgb Constructor
__toString ( ) : string Method to return the string value for printing output.
get ( integer $type = Pop\Color\Color::ASSOC_ARRAY, boolean $css = false ) : string | array Method to get the full RGB value
getBlue ( ) : integer Method to get the blue value
getGreen ( ) : integer Method to get the green value
getRed ( ) : integer Method to get the red value

Method Details

__construct() public méthode

Instantiate the RGB color object
public __construct ( integer $r, integer $g, integer $b ) : Rgb
$r integer
$g integer
$b integer
Résultat Rgb

__toString() public méthode

Method to return the string value for printing output.
public __toString ( ) : string
Résultat string

get() public méthode

Method to get the full RGB value
public get ( integer $type = Pop\Color\Color::ASSOC_ARRAY, boolean $css = false ) : string | array
$type integer
$css boolean
Résultat string | array

getBlue() public méthode

Method to get the blue value
public getBlue ( ) : integer
Résultat integer

getGreen() public méthode

Method to get the green value
public getGreen ( ) : integer
Résultat integer

getRed() public méthode

Method to get the red value
public getRed ( ) : integer
Résultat integer

Property Details

$blue protected_oe property

Blue value
protected int $blue
Résultat integer

$green protected_oe property

Green value
protected int $green
Résultat integer

$red protected_oe property

Red value
protected int $red
Résultat integer