Identicon\Generator\BaseGenerator::setColor PHP Method

setColor() public method

Set the image color.
public setColor ( string | array $color )
$color string | array The color in hexa (3 or 6 chars) or rgb array
    public function setColor($color)
    {
        if (null === $color) {
            return $this;
        }
        $this->color = $this->convertColor($color);
        return $this;
    }