__construct() __construct(string $hexString = '', float $alpha = 1.0) Color constructor. Parameters string $hexString Hex string float $alpha Transparency value 0-1
hexToRgb() hexToRgb(string $hex) : array Convert hex string to RGB Parameters string $hex Hex string. Possible values: #ffffff, #fff, fff Returns array — Contains (RGB) values red, green and blue