17 $width = $this->
argument(0)->type(
'numeric')->required()->value();
18 $height = $this->
argument(1)->type(
'numeric')->required()->value();
19 $x = $this->
argument(2)->type(
'numeric')->required()->value();
20 $y = $this->
argument(3)->type(
'numeric')->required()->value();
21 $callback = $this->
argument(4)->type(
'closure')->value();
23 $ellipse_classname = sprintf(
'\Intervention\Image\%s\Shapes\EllipseShape',
24 $image->getDriver()->getDriverName());
26 $ellipse =
new $ellipse_classname($width, $height);
28 if ($callback instanceof Closure) {
32 $ellipse->applyToImage($image, $x, $y);