PHP 클래스 Pop\Color\Space\Rgb

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

보호된 프로퍼티들

프로퍼티 타입 설명
$blue integer Blue value
$green integer Green value
$red integer Red value

공개 메소드들

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

메소드 상세

__construct() 공개 메소드

Instantiate the RGB color object
public __construct ( integer $r, integer $g, integer $b ) : Rgb
$r integer
$g integer
$b integer
리턴 Rgb

__toString() 공개 메소드

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

get() 공개 메소드

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
리턴 string | array

getBlue() 공개 메소드

Method to get the blue value
public getBlue ( ) : integer
리턴 integer

getGreen() 공개 메소드

Method to get the green value
public getGreen ( ) : integer
리턴 integer

getRed() 공개 메소드

Method to get the red value
public getRed ( ) : integer
리턴 integer

프로퍼티 상세

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

Blue value
protected int $blue
리턴 integer

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

Green value
protected int $green
리턴 integer

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

Red value
protected int $red
리턴 integer