public static function fromRgbaString(string $string) : TransparentColour
    {
        list($r, $g, $b, $a) = ColourStringParser::parseRgbaString($string);

        return new self(new Colour($r, $g, $b), $a);
    }
public static function fromRgbaString(string $string) : TransparentColour
    {
        list($r, $g, $b, $a) = ColourStringParser::parseRgbaString($string);

        return new self(new Colour($r, $g, $b), $a);
    }
public static function fromRgbaString ( string $ string ) : TransparentColour { list ( $ r , $ g , $ b , $ a ) = ColourStringParser :: parseRgbaString ( $ string ) ; return new self ( new Colour ( $ r , $ g , $ b ) , $ a ) ; }
Creates a new colour from the supplied rgba string value

@param string $string eg: "rgba(100, 100, 100, 0.5)"

@return TransparentColour
@throws InvalidArgumentException
Creates a new colour from the supplied rgba string value