Circle

Class representing a circle.

Constructor

new Circle(x, y, radius, options)

Create a circle.

Parameters:
NameTypeDescription
xnumber

The x value of the centre.

ynumber

The y value of the centre.

radiusnumber

The radius.

optionsObject
Properties
NameTypeAttributesDefaultDescription
strokestring<optional>
"black"
strokeWidthnumber<optional>
0.1
fillstring<optional>
"none"

Classes

Circle

Methods

toSVGElement() → {SVGElement}

Returns:
Type: 
SVGElement