PHP 클래스 Pop\Color\Space\Hsb

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

보호된 프로퍼티들

프로퍼티 타입 설명
$brightness integer Brightness percentage value
$hue integer Hue angle value in degrees
$saturation integer Saturation percentage value

공개 메소드들

메소드 설명
__construct ( integer $h, integer $s, integer $b ) : Hsb 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 HSB value
getBrightness ( ) : integer Method to get the brightness value
getHue ( ) : integer Method to get the hue value
getSaturation ( ) : integer Method to get the saturation value

메소드 상세

__construct() 공개 메소드

Instantiate the RGB color object
public __construct ( integer $h, integer $s, integer $b ) : Hsb
$h integer
$s integer
$b integer
리턴 Hsb

__toString() 공개 메소드

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

get() 공개 메소드

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

getBrightness() 공개 메소드

Method to get the brightness value
public getBrightness ( ) : integer
리턴 integer

getHue() 공개 메소드

Method to get the hue value
public getHue ( ) : integer
리턴 integer

getSaturation() 공개 메소드

Method to get the saturation value
public getSaturation ( ) : integer
리턴 integer

프로퍼티 상세

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

Brightness percentage value
protected int $brightness
리턴 integer

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

Hue angle value in degrees
protected int $hue
리턴 integer

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

Saturation percentage value
protected int $saturation
리턴 integer