Свойство | Тип | Описание | |
---|---|---|---|
$blue | string | Blue value | |
$green | string | Green value | |
$hex | string | Hex value | |
$red | string | Red value | |
$shorthand | string | Shorthand hex value |
Метод | Описание | |
---|---|---|
__construct ( string $hex ) : |
Constructor | |
__toString ( ) : string | Method to return the string value for printing output. | |
get ( integer $type = Pop\Color\Color::STRING, boolean $hash = false, boolean $short = false ) : string | Method to get the full RGB hex value | |
getBlue ( ) : integer | Method to get the blue hex value | |
getGreen ( ) : integer | Method to get the green hex value | |
getRed ( ) : integer | Method to get the red hex value |
Метод | Описание | |
---|---|---|
isValid ( ) : boolean | Method to determine if the hex value is valid. |
public __construct ( string $hex ) : |
||
$hex | string | |
Результат |
public __toString ( ) : string | ||
Результат | string |