Property | Type | Description | |
---|---|---|---|
$alpha | Transparency value 0-1 | ||
$hexString | Hex string: #FFFFFF |
Method | Description | |
---|---|---|
__construct ( string $hexString = '', float $alpha = 1 ) | Color constructor. | |
getAlpha ( ) : float | Alpha value. | |
getHexString ( ) : string | Get hex string. | |
getRgb ( ) : array | Get RGB array | |
getRgba ( ) : array | Get RGBA array | |
hexToRgb ( string $hex ) : array | Convert hex string to RGB | |
setAlpha ( float $alpha ) | ||
setHexString ( string $hexString ) | Set hex string. |
public __construct ( string $hexString = '', float $alpha = 1 ) | ||
$hexString | string | Hex string |
$alpha | float | Transparency value 0-1 |
public setHexString ( string $hexString ) | ||
$hexString | string |