src/Colour/Colour.php
public static function fromHexString(string $string) : Colour
    {
        list($r, $g, $b) = ColourStringParser::parseHexString($string);

        return new self($r, $g, $b);
    }
public static function fromHexString(string $string) : Colour
    {
        list($r, $g, $b) = ColourStringParser::parseHexString($string);

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

@param string $string

@return Colour
Creates a new colour from the supplied hex value