Skip to main content

Point.setCircle()

The Point.setCircle() method adds a circle to a Point. It yields similar results as the Point.addCircle() method, the different is that Point.setCircle() will overwrite any previous circle set.

Essentially, it mimics the difference between adding vs setting an attribute.

Refer to Drawing circles for more details on how circles are handled.

Signature

Point point.setCircle(
number radius,
string className
)
tip

This method is chainable as it returns the Point object

Example

Examples of Point.setCircle(), compare this to Point.addCircle()