Circle

Circle in svg defines a circle based on a given radius and a center. SvgDreams library has a class for defining a circle.
$circleObj = new Circle("circle_1");
   $circleObj->radius = 25;
   $circleObj->centerX = 30;
   $circleObj->centerY = 30;
   $circleObj->fill = "#3b5998";
   $circleObj->stroke = "black";
Circle in pendulum animation. To understand the animation, you can find the codes in shapes_circle_0.php.
Circles with opacity go in random paths, you can find the codes in shapes_circle_2.php.

Methods

public function setCoordinates($cx, $cy)
Sets the center values of the circle
Parameters:
$cx, $cy: center of the circle.
public function setRadius($radius)
Sets the radius of the SVG shape. Equal to setting $this->radius value.
Parameters:
$radius is the radius value of the circle
function __construct($itemId)
Parameters:
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