RunMyBusiness\Initialcon\Initialcon::setColor PHP Метод

setColor() публичный Метод

Set the image color.
public setColor ( string $color ) : Initialcon
$color string The color in hexa (6 chars)
Результат Initialcon
    public function setColor($color)
    {
        if (false !== strpos($color, '#')) {
            $color = substr($color, 1);
        }
        $this->color = hexdec(substr($color, 0, 2));
        $this->color .= hexdec(substr($color, 2, 2));
        $this->color .= hexdec(substr($color, 4, 2));
        return $this;
    }