Circle#Circle

new Circle(x, y, diameter)

Creates a new Circle object with the center coordinate specified by the x and y parameters and the diameter specified by the diameter parameter.
If you call this function without parameters, a circle with x, y, diameter and radius properties set to 0 is created.

Parameters
Name Type Argument Default Description
x number <optional>
0

The x coordinate of the center of the circle.

y number <optional>
0

The y coordinate of the center of the circle.

diameter number <optional>
0

The diameter of the circle.

Source code: geom/Circle.js (Line 17)
doc_phaser
2017-02-14 10:41:20
Comments
Leave a Comment

Please login to continue.