프로퍼티 | 타입 | 설명 | |
---|---|---|---|
$alpha | Transparency value 0-1 | ||
$hexString | Hex string: #FFFFFF |
메소드 | 설명 | |
---|---|---|
__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 |