# Two.Star
Extends: Two.Path
# Constructor
| Argument | Description |
|---|---|
| x | The x position of the star. |
| y | The y position of the star. |
| innerRadius | The inner radius value of the star. |
| outerRadius | The outer radius value of the star. |
| sides | The number of sides used to construct the star. |
# fromObject
Two.Star.fromObject
Returns: Two.Star
| Argument | Description |
|---|---|
| obj | Object notation of a Two.Star to create a new instance |
# copy
Two.Star.copy
| Argument | Description |
|---|---|
| star | The reference Two.Star |
Copy the properties of one Two.Star onto another.
# clone
Two.Star.clone
Returns: Two.Star
| Argument | Description |
|---|---|
| parent | The parent group or scene to add the clone to. |
Create a new instance of Two.Star with the same properties of the current path.
# toObject
Two.Star.toObject
Returns: Object
Return a JSON compatible plain object that represents the path.