PHP 클래스 Pop\Color\Space\Lab

저자: Nick Sagona, III ([email protected])
상속: implements Pop\Color\Space\ColorInterface
파일 보기 프로젝트 열기: nicksagona/PopPHP

보호된 프로퍼티들

프로퍼티 타입 설명
$a integer A value
$b integer B value
$l integer Lightness value

공개 메소드들

메소드 설명
__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

메소드 상세

__construct() 공개 메소드

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

__toString() 공개 메소드

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

get() 공개 메소드

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

getA() 공개 메소드

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

getB() 공개 메소드

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

getL() 공개 메소드

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

프로퍼티 상세

$a 보호되어 있는 프로퍼티

A value
protected int $a
리턴 integer

$b 보호되어 있는 프로퍼티

B value
protected int $b
리턴 integer

$l 보호되어 있는 프로퍼티

Lightness value
protected int $l
리턴 integer