# Two.Ellipse
Extends: Two.Path
# Constructor
| Argument | Description |
|---|---|
| x | The x position of the ellipse. |
| y | The y position of the ellipse. |
| rx | The radius value of the ellipse in the x direction. |
| ry | The radius value of the ellipse in the y direction. |
| resolution | The number of vertices used to construct the ellipse. |
# fromObject
Two.Ellipse.fromObject
Returns: Two.Ellipse
| Argument | Description |
|---|---|
| obj | Object notation of a Two.Ellipse to create a new instance |
Create a new Two.Ellipse from an object notation of a Two.Ellipse.
# copy
Two.Ellipse.copy
| Argument | Description |
|---|---|
| ellipse | The reference Two.Ellipse |
Copy the properties of one Two.Ellipse onto another.
# clone
Two.Ellipse.clone
Returns: Two.Ellipse
| Argument | Description |
|---|---|
| parent | The parent group or scene to add the clone to. |
Create a new instance of Two.Ellipse with the same properties of the current path.
# toObject
Two.Ellipse.toObject
Returns: Object
Return a JSON compatible plain object that represents the path.