public function setColor($color)
    {
        if (null === $color) {
            return $this;
        }

        $this->color = $this->convertColor($color);

        return $this;
    }
public function setColor($color)
    {
        if (null === $color) {
            return $this;
        }

        $this->color = $this->convertColor($color);

        return $this;
    }
public function setColor ( $ color ) { if ( null === $ color ) { return $ this ; } $ this -> color = $ this -> convertColor ( $ color ) ; return $ this ; }
Set the image color.

@param string|array $color The color in hexa (3 or 6 chars) or rgb array

@return $this
Set the image color .