public static function fromRGBString($color)
    {
        $color = rtrim($color, "rgb (\t)");
        $rgb = preg_split('\s+,\s+', $color);

        $c = new self();
        list($c->r, $c->g, $c->b) = array_map('intval', $rgb);

        return $c;
    }
public static function fromRGBString($color)
    {
        $color = rtrim($color, "rgb (\t)");
        $rgb = preg_split('\s+,\s+', $color);

        $c = new self();
        list($c->r, $c->g, $c->b) = array_map('intval', $rgb);

        return $c;
    }
public static function fromRGBString ( $ color ) { $ color = rtrim ( $ color , "rgb (\t)" ) ; $ rgb = preg_split ( '\s+,\s+' , $ color ) ; $ c = new self ( ) ; list ( $ c -> r , $ c -> g , $ c -> b ) = array_map ( 'intval' , $ rgb ) ; return $ c ; }
Construct Color object from an rgb string

@param string $color The rgb string representing the color
@returns Color object with for the rgb string
Construct Color object from an rgb string