Ellipse in svg defines an ellipse based on given coordinates and style attributes. SvgDreams library has a class for defining an ellipse. Sample ellipse code
$ellipseObj = new Ellipse("ellipse_1");
  $ellipseObj->setCoordinates(100, 100);
  $ellipseObj->setRadius(100, 200);
  $ellipseObj->fill = "blue";
Two eclipses with animation. You can see tones of green in the intersection area:


public function setCoordinates($cx, $cy)
Sets the center values of an ellipse.
$cx, $cy: center of the ellipse.
public function setRadius($radiusX, $radiusY)
Sets the radius of the SVG shape. Equal to setting $this->radiusX and $this->radiusY values.
$radiusX and $radiusY, radius values of the ellipse
function __construct($itemId)
Constructor of the ellipse class needs an id for the ellipse element. We suggest you to define a unique ID.

All rights reserved. See license