PHP Class Pop\Color\Space\Lab

Author: Nick Sagona, III ([email protected])
Inheritance: implements Pop\Color\Space\ColorInterface
Show file Open project: nicksagona/PopPHP

Protected Properties

Property Type Description
$a integer A value
$b integer B value
$l integer Lightness value

Public Methods

Method Description
__construct ( integer $l, integer $a, integer $b ) : Lab Constructor
__toString ( ) : string Method to return the string value for printing output.
get ( integer $type = Pop\Color\Color::ASSOC_ARRAY ) : string | array Method to get the full LAB value
getA ( ) : integer Method to get the A value
getB ( ) : integer Method to get the B value
getL ( ) : integer Method to get the L value

Method Details

__construct() public method

Instantiate the LAB color object
public __construct ( integer $l, integer $a, integer $b ) : Lab
$l integer
$a integer
$b integer
return Lab

__toString() public method

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

get() public method

Method to get the full LAB value
public get ( integer $type = Pop\Color\Color::ASSOC_ARRAY ) : string | array
$type integer
return string | array

getA() public method

Method to get the A value
public getA ( ) : integer
return integer

getB() public method

Method to get the B value
public getB ( ) : integer
return integer

getL() public method

Method to get the L value
public getL ( ) : integer
return integer

Property Details

$a protected property

A value
protected int $a
return integer

$b protected property

B value
protected int $b
return integer

$l protected property

Lightness value
protected int $l
return integer