메소드 |
설명 |
|
__construct ( mixed $color = null ) |
Constructor. |
|
__toString ( ) : string |
Returns textual (#RRGGBB) representation of the current color. |
|
getBinary ( ) : integer |
Returns the current color in binary form 0 - black, 1 - white). |
|
getBlue ( ) : integer |
Returns the blue component luminance. |
|
getGreen ( ) : integer |
Returns the green component luminance. |
|
getHex ( ) : string |
Returns the current color as a six-digit hexadecimal number. |
|
getLuminance ( ) : integer |
Returns the color luminance according to the human perception. |
|
getRed ( ) : integer |
Returns the red component luminance. |
|
getRgb ( ) : array |
Returns the current color as an array of the red, green and blue components. |
|
setBlue ( integer | string $blue ) : self |
Sets the blue component luminance. |
|
setGreen ( integer | string $green ) : self |
Sets the green component luminance. |
|
setLuminance ( integer | string $luminance ) : self |
Sets the color in grayscale according to the luminance value. |
|
setRed ( integer | string $red ) : self |
Sets the red component luminance. |
|
toGrayScale ( ) : self |
Returns the currect color converted to grayscale. |
|
toInverse ( ) : self |
Returns an inverse color. |
|