Class: Circle

Circle(x, y, radius, options)

Class representing a circle.

Constructor

new Circle(x, y, radius, options)

Create a circle.

Parameters:
Name Type Description
x number

The x value of the centre.

y number

The y value of the centre.

radius number

The radius.

options Object
Properties
Name Type Attributes Default Description
stroke string <optional>
"black"
strokeWidth number <optional>
0.1
fill string <optional>
"none"
Source:

Classes

Circle

Methods

toSVGElement() → {SVGElement}

Source:
Returns:
Type
SVGElement

(static) fromVector(vector, radius) → {Circle}

Create a circle from a Vector object and a radius.

Parameters:
Name Type Description
vector Vector

The position of the centre of the circle.

radius number

The radius.

Source:
Returns:
Type
Circle