public function toHexString()
    {
        return '#' .
            $this->decToHex($this->r) .
            $this->decToHex($this->g) .
            $this->decToHex($this->b);
    }
public function toHexString()
    {
        return '#' .
            $this->decToHex($this->r) .
            $this->decToHex($this->g) .
            $this->decToHex($this->b);
    }
public function toHexString ( ) { return '#' . $ this -> decToHex ( $ this -> r ) . $ this -> decToHex ( $ this -> g ) . $ this -> decToHex ( $ this -> b ) ; }
Convert color object to hex string

@returns string The hex string
Convert color object to hex string