Laravolt\Avatar\Avatar::createCircleShape PHP Method

createCircleShape() protected method

protected createCircleShape ( )
    protected function createCircleShape()
    {
        $circleDiameter = $this->width - $this->borderSize;
        $x = $this->width / 2;
        $y = $this->height / 2;
        $this->image->circle($circleDiameter, $x, $y, function (AbstractShape $draw) {
            $draw->background($this->background);
            $draw->border($this->borderSize, $this->getBorderColor());
        });
    }